diff --git a/systemd/script/send_credentials.sh b/systemd/script/send_credentials.sh index 12ff742c..7684c739 100644 --- a/systemd/script/send_credentials.sh +++ b/systemd/script/send_credentials.sh @@ -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 \ No newline at end of file +done