...
This commit is contained in:
@@ -36,7 +36,7 @@ log "Script directory: $SCRIPT_DIR"
|
||||
|
||||
# Define target directory for SAL repository
|
||||
SAL_TARGET_DIR="/root/code/git.threefold.info/herocode/sal"
|
||||
SAL_REPO_URL="git@git.ourworld.tf:herocode/sal.git"
|
||||
SAL_REPO_URL="git@git.threefold.info:herocode/sal.git"
|
||||
|
||||
# Function to check if ssh-agent is loaded and has keys
|
||||
check_ssh_agent() {
|
||||
@@ -59,10 +59,10 @@ check_ssh_agent() {
|
||||
|
||||
# Function to test SSH connection to git server
|
||||
test_ssh_connection() {
|
||||
log "Testing SSH connection to git.ourworld.tf..."
|
||||
log "Testing SSH connection to git.threefold.info..."
|
||||
|
||||
if ssh -T -o ConnectTimeout=10 -o StrictHostKeyChecking=no git@git.ourworld.tf 2>&1 | grep -q "successfully authenticated"; then
|
||||
log "✅ SSH connection to git.ourworld.tf successful"
|
||||
if ssh -T -o ConnectTimeout=10 -o StrictHostKeyChecking=no git@git.threefold.info 2>&1 | grep -q "successfully authenticated"; then
|
||||
log "✅ SSH connection to git.threefold.info successful"
|
||||
return 0
|
||||
else
|
||||
warn "SSH connection test failed. Continuing anyway..."
|
||||
|
||||
Reference in New Issue
Block a user