mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
websoft9 servicew
This commit is contained in:
parent
2d301c46ab
commit
c99561123e
2 changed files with 9 additions and 4 deletions
|
@ -6,9 +6,14 @@ trap "sleep 1; continue" ERR
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
set +e
|
set +e
|
||||||
docker cp websoft9-git:/var/websoft9/credential websoft9-apphub:/websoft9/credentials
|
docker cp websoft9-git:/var/websoft9/credential /data/websoft9/credential_git
|
||||||
docker cp websoft9-deployment:/var/websoft9/credential websoft9-apphub:/websoft9/credentials
|
docker cp /data/websoft9/credential_git websoft9-apphub:/websoft9/credentials
|
||||||
docker cp websoft9-proxy:/var/websoft9/credential websoft9-apphub:/websoft9/credentials
|
|
||||||
|
docker cp websoft9-deployment:/var/websoft9/credential /data/websoft9/credential_deployment
|
||||||
|
docker cp /data/websoft9/credential_deployment websoft9-apphub:/websoft9/credentials
|
||||||
|
|
||||||
|
docker cp websoft9-proxy:/var/websoft9/credential /data/websoft9/credential_proxy
|
||||||
|
docker cp /data/websoft9/credential_proxy websoft9-apphub:/websoft9/credentials
|
||||||
set -e
|
set -e
|
||||||
sleep 3
|
sleep 3
|
||||||
done
|
done
|
|
@ -8,7 +8,7 @@ KillSignal=SIGQUIT
|
||||||
WorkingDirectory=/data/websoft9/systemd
|
WorkingDirectory=/data/websoft9/systemd
|
||||||
ExecStart=-/bin/bash send_credentials.sh
|
ExecStart=-/bin/bash send_credentials.sh
|
||||||
Restart=always
|
Restart=always
|
||||||
Type=notify
|
Type=simple
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
StandardError=syslog
|
StandardError=syslog
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue