Update send_credentials.sh

This commit is contained in:
qiaofeng1227 2024-01-11 10:37:01 +08:00 committed by GitHub
parent 4f767ab4cd
commit 067bc176d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,9 @@
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
# Websoft9 microservices container(git,deployment,proxy) have credential info inside the container
# send_credentials.sh: copy credential from these container, and save it into apphub by apphub cli, it will retry 20 times in every 3 seconds interval
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
deployment_username="admin"
credentials=("/data/gitea/credential" "/data/credential" "/data/credential")
containers=("websoft9-git" "websoft9-deployment" "websoft9-proxy")
@ -69,4 +72,4 @@ for ((i=0; i<$length; i++)); do
else
echo "Password for $container is not set or empty. Skipping..."
fi
done
done