diff --git a/gitea-admin.sh b/gitea-admin.sh index 60e3c3b..e6cb5ee 100644 --- a/gitea-admin.sh +++ b/gitea-admin.sh @@ -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 " +ssh-keygen -f ~/.ssh/known_hosts -R $GITEA_API_HOST + echo "Connecting to server and executing command..." echo $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 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..." SSH_PUBLIC_KEY=$(cat ~/.ssh/id_ed25519.pub)