autocommit

This commit is contained in:
leo 2024-08-31 02:26:18 +05:00
parent f6be34983c
commit 0af2e4db8f

View File

@ -19,6 +19,8 @@ docker exec -i --user git gitea gitea admin user create --username $GITEA_USER_N
docker exec -i --user git gitea gitea admin user list docker exec -i --user git gitea gitea admin user list
" "
ssh-keygen -f ~/.ssh/known_hosts -R $GITEA_API_HOST
echo "Connecting to server and executing command..." echo "Connecting to server and executing command..."
echo $ssh_cmd echo $ssh_cmd
ssh -p $SERVER_SSH_PORT $SERVER_REMOTE_USER@$SERVER_REMOTE_HOST "$ssh_cmd" ssh -p $SERVER_SSH_PORT $SERVER_REMOTE_USER@$SERVER_REMOTE_HOST "$ssh_cmd"
@ -38,8 +40,6 @@ echo "Save GITEA_WRITE_USER_REPO token to $INSTALL_ENV..."
cd /data/gitea-init cd /data/gitea-init
bash env-gen-install.sh GITEA_WRITE_USER_REPO $TOKEN bash env-gen-install.sh GITEA_WRITE_USER_REPO $TOKEN
ssh-keygen -f ~/.ssh/known_hosts -R $GITEA_API_HOST
echo "Add public SSH key to gitea app..." echo "Add public SSH key to gitea app..."
SSH_PUBLIC_KEY=$(cat ~/.ssh/id_ed25519.pub) SSH_PUBLIC_KEY=$(cat ~/.ssh/id_ed25519.pub)