Use HTTP URL for git clone in install script
Target servers don't need SSH keys — use public HTTP endpoint for unauthenticated clone during install. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,7 @@ set -eo pipefail
|
||||
|
||||
INSTALL_DIR="/usr/local/gniza"
|
||||
BIN_LINK="/usr/local/bin/gniza"
|
||||
REPO_SSH="ssh://git@182.54.236.100:2222/shukivaknin/gniza.git"
|
||||
REPO_URL="http://182.54.236.100:3001/shukivaknin/gniza.git"
|
||||
TMPDIR_CLONE=""
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
@@ -21,7 +21,7 @@ if [[ -n "${SCRIPT_DIR:-}" && -f "$SCRIPT_DIR/../bin/gniza" ]]; then
|
||||
else
|
||||
echo "Cloning gniza..."
|
||||
TMPDIR_CLONE="$(mktemp -d)"
|
||||
git clone --depth 1 "$REPO_SSH" "$TMPDIR_CLONE" 2>&1
|
||||
git clone --depth 1 "$REPO_URL" "$TMPDIR_CLONE" 2>&1
|
||||
SOURCE_DIR="$TMPDIR_CLONE"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user