mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 01:28:39 +08:00
systemd
This commit is contained in:
parent
557afe14f2
commit
ff879c62e9
@ -6,9 +6,12 @@ trap "sleep 1; continue" ERR
|
|||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
|
echo "copy git credential"
|
||||||
docker cp websoft9-git:/var/websoft9/credential /data/websoft9/credential_git
|
docker cp websoft9-git:/var/websoft9/credential /data/websoft9/credential_git
|
||||||
docker cp /data/websoft9/credential_git websoft9-apphub:/websoft9/credentials
|
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
|
docker cp websoft9-deployment:/var/websoft9/credential /data/websoft9/credential_deployment
|
||||||
content=$(cat /data/websoft9/credential_deployment)
|
content=$(cat /data/websoft9/credential_deployment)
|
||||||
username="admin"
|
username="admin"
|
||||||
@ -17,6 +20,7 @@ while true; do
|
|||||||
echo "$json" > /data/websoft9/credential_deployment
|
echo "$json" > /data/websoft9/credential_deployment
|
||||||
docker cp /data/websoft9/credential_deployment websoft9-apphub:/websoft9/credentials
|
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 websoft9-proxy:/var/websoft9/credential /data/websoft9/credential_proxy
|
||||||
docker cp /data/websoft9/credential_proxy websoft9-apphub:/websoft9/credentials
|
docker cp /data/websoft9/credential_proxy websoft9-apphub:/websoft9/credentials
|
||||||
set -e
|
set -e
|
||||||
|
Loading…
Reference in New Issue
Block a user