Change the command for gitea passthrough
This commit is contained in:
@@ -45,11 +45,11 @@ systemctl restart sshd
|
||||
echo "------- Enabling SSH passthrough -------"
|
||||
# Make files necessary for SSH passthrough (https://docs.gitea.io/en-us/install-with-docker/#ssh-container-passthrough)
|
||||
mkdir -p /var/lib/gitea
|
||||
mkdir -p /app/gitea
|
||||
tee /app/gitea/gitea <<END
|
||||
cat <<"EOF" | sudo tee /usr/local/bin/gitea
|
||||
#!/bin/sh
|
||||
ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\\"\$SSH_ORIGINAL_COMMAND\\" \$0 \$@"
|
||||
END
|
||||
ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
|
||||
EOF
|
||||
sudo chmod +x /usr/local/bin/gitea
|
||||
|
||||
chmod +x /app/gitea/gitea
|
||||
|
||||
|
||||
Reference in New Issue
Block a user