mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-01 08:59:46 +02:00
fix local setup script
This commit is contained in:
parent
0800eb639e
commit
83cc486eda
9 changed files with 46 additions and 48 deletions
|
|
@ -3,12 +3,12 @@
|
|||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
LIB_PATH="$SCRIPT_DIR/scripts/lib/remote_common.sh"
|
||||
LIB_PATH="$SCRIPT_DIR/scripts/lib/setup_common.sh"
|
||||
BOOTSTRAP_LIB=""
|
||||
|
||||
if [[ ! -f "$LIB_PATH" ]]; then
|
||||
BOOTSTRAP_LIB="$(mktemp)"
|
||||
curl -fsSL -o "$BOOTSTRAP_LIB" "https://raw.githubusercontent.com/dograh-hq/dograh/main/scripts/lib/remote_common.sh"
|
||||
curl -fsSL -o "$BOOTSTRAP_LIB" "https://raw.githubusercontent.com/dograh-hq/dograh/main/scripts/lib/setup_common.sh"
|
||||
LIB_PATH="$BOOTSTRAP_LIB"
|
||||
fi
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ trap cleanup EXIT
|
|||
# shellcheck disable=SC1090
|
||||
. "$LIB_PATH"
|
||||
|
||||
DOGRAH_REMOTE_PROJECT_DIR="$SCRIPT_DIR"
|
||||
DOGRAH_DEPLOY_PROJECT_DIR="$SCRIPT_DIR"
|
||||
|
||||
VALIDATE_ONLY=0
|
||||
MODE="pull"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue