websoft9/systemd/send_credentials.sh
2023-09-19 15:40:14 +08:00

19 lines
364 B
Bash

#!/bin/bash
set -e
trap "sleep 1; continue" ERR
while ! docker cp my-container:/path/to/file websoft9-apphub:/websoft9/credentials; do
sleep 1
done
while ! docker cp my-container:/path/to/file websoft9-apphub:/path/to/credentials; do
sleep 1
done
while ! docker cp my-container:/path/to/file websoft9-apphub:/path/to/credentials; do
sleep 1
done