websoft9/systemd/send_credentials.sh
2023-09-20 14:44:46 +08:00

12 lines
No EOL
361 B
Bash

#!/bin/bash
set -e
trap "sleep 1; continue" ERR
while true; do
docker cp websoft9-git:/var/websoft9/credential websoft9-apphub:/websoft9/credentials
docker cp websoft9-deployment:/var/websoft9/credential websoft9-apphub:/websoft9/credentials
docker cp websoft9-proxy:/var/websoft9/credential websoft9-apphub:/websoft9/credentials
sleep 3
done