From ff879c62e9ca24cf1e852ace406e29673fd709a7 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Wed, 20 Sep 2023 17:10:32 +0800 Subject: [PATCH] systemd --- systemd/send_credentials.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/systemd/send_credentials.sh b/systemd/send_credentials.sh index 9f9bfc25..ad5a5d7b 100644 --- a/systemd/send_credentials.sh +++ b/systemd/send_credentials.sh @@ -6,9 +6,12 @@ trap "sleep 1; continue" ERR while true; do set +e + + echo "copy git credential" docker cp websoft9-git:/var/websoft9/credential /data/websoft9/credential_git docker cp /data/websoft9/credential_git websoft9-apphub:/websoft9/credentials + echo "copy deployment credential" docker cp websoft9-deployment:/var/websoft9/credential /data/websoft9/credential_deployment content=$(cat /data/websoft9/credential_deployment) username="admin" @@ -17,6 +20,7 @@ while true; do echo "$json" > /data/websoft9/credential_deployment docker cp /data/websoft9/credential_deployment websoft9-apphub:/websoft9/credentials + echo "wait nginx..." docker cp websoft9-proxy:/var/websoft9/credential /data/websoft9/credential_proxy docker cp /data/websoft9/credential_proxy websoft9-apphub:/websoft9/credentials set -e