update installers
This commit is contained in:
parent
662fc42ff7
commit
713754fece
|
|
@ -6,7 +6,6 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
ROOT_DIR="$SCRIPT_DIR/../.."
|
ROOT_DIR="$SCRIPT_DIR/../.."
|
||||||
|
|
||||||
# Run deploy + config with absolute paths
|
# Run deploy + config with absolute paths
|
||||||
source "$ROOT_DIR/app/scripts/deploy.sh"
|
|
||||||
source "$ROOT_DIR/app/scripts/config.sh"
|
source "$ROOT_DIR/app/scripts/config.sh"
|
||||||
|
|
||||||
# Run remote install on the target
|
# Run remote install on the target
|
||||||
|
|
|
||||||
|
|
@ -17,16 +17,16 @@ if [ ! -x "$BUN_SYMLINK" ]; then
|
||||||
sudo ln -sf "$BUN_REAL" "$BUN_SYMLINK"
|
sudo ln -sf "$BUN_REAL" "$BUN_SYMLINK"
|
||||||
echo "Symlinked $BUN_REAL -> $BUN_SYMLINK"
|
echo "Symlinked $BUN_REAL -> $BUN_SYMLINK"
|
||||||
else
|
else
|
||||||
echo "Error: bun not found at $BUN_REAL"
|
echo ">> Installing bun at $BUN_REAL"
|
||||||
exit 1
|
sudo apt install unzip
|
||||||
|
curl -fsSL https://bun.com/install | bash
|
||||||
|
sudo ln -sf "$BUN_REAL" "$BUN_SYMLINK"
|
||||||
|
echo "Symlinked $BUN_REAL -> $BUN_SYMLINK"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "bun already available at $BUN_SYMLINK"
|
echo "bun already available at $BUN_SYMLINK"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ">> Clong git repository"
|
|
||||||
git clone $REPO $DEST
|
|
||||||
|
|
||||||
echo ">> Setting CAP_NET_BIND_SERVICE on $BUN_REAL"
|
echo ">> Setting CAP_NET_BIND_SERVICE on $BUN_REAL"
|
||||||
sudo setcap 'cap_net_bind_service=+ep' "$BUN_REAL"
|
sudo setcap 'cap_net_bind_service=+ep' "$BUN_REAL"
|
||||||
getcap "$BUN_REAL" || true
|
getcap "$BUN_REAL" || true
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
ROOT_DIR="$SCRIPT_DIR/../.."
|
ROOT_DIR="$SCRIPT_DIR/../.."
|
||||||
|
|
||||||
# Run deploy + config with absolute paths
|
# Run deploy + config with absolute paths
|
||||||
source "$ROOT_DIR/app/scripts/deploy.sh"
|
|
||||||
source "$ROOT_DIR/app/scripts/config.sh"
|
source "$ROOT_DIR/app/scripts/config.sh"
|
||||||
|
|
||||||
# Run remote install on the target
|
# Run remote install on the target
|
||||||
ssh "$HOST" "cd $DEST && ./app/scripts/install.sh && sudo systemctl start nose-pluto.service"
|
ssh "$HOST" "git clone $REPO $DEST && cd $DEST && ./app/scripts/install.sh && sudo systemctl start nose-pluto.service"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user