bot_pozhitki/deploy/reload-caddy.sh
2026-09-03 19:23:39 +00:00

15 lines
268 B
Bash
Executable file

#!/bin/sh
set -u
attempt=0
while [ "$attempt" -lt 12 ]; do
if /usr/bin/caddy reload \
--config /home/snw/bot_save_bablo/data/Caddyfile.runtime \
--adapter caddyfile; then
exit 0
fi
attempt=$((attempt + 1))
sleep 5
done
exit 1