fix: configure SSH to use port 222 for Gitea and improve entrypoint resilience
This commit is contained in:
@@ -9,10 +9,10 @@ cp /root/.ssh/known_hosts /tmp/known_hosts 2>/dev/null || touch /tmp/known_hosts
|
||||
chmod 600 /tmp/known_hosts
|
||||
|
||||
# Add Gitea to known_hosts
|
||||
ssh-keyscan -H git.processhub.work >> /tmp/known_hosts 2>/dev/null || true
|
||||
ssh-keyscan -H -p 222 git.processhub.work >> /tmp/known_hosts 2>/dev/null || true
|
||||
|
||||
# Configure SSH
|
||||
export GIT_SSH_COMMAND="ssh -i /root/.ssh/id_ed25519 -o UserKnownHostsFile=/tmp/known_hosts -o StrictHostKeyChecking=accept-new"
|
||||
export GIT_SSH_COMMAND="ssh -p 222 -i /root/.ssh/id_ed25519 -o UserKnownHostsFile=/tmp/known_hosts -o StrictHostKeyChecking=accept-new"
|
||||
|
||||
# Git config
|
||||
git config --global user.email "gabriel.pereira@protonmail.com"
|
||||
|
||||
Reference in New Issue
Block a user