Skip to content

Commit ba5ce7e

Browse files
fix: restart keyper after backup.sh completed with logs
1 parent 8ad6142 commit ba5ce7e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/backup.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,14 @@ cleanup_and_restart() {
4343
set +e
4444

4545
rm -rf "$WORKDIR"
46-
docker compose start
46+
47+
if [ -n "${LOKI_URL:-}" ]; then
48+
echo -e "${B}Restarting services with Loki logging...${DEF}"
49+
docker compose -f docker-compose.yml -f docker-compose.loki.yml start
50+
else
51+
echo -e "${B}Restarting services with default logging...${DEF}"
52+
docker compose start
53+
fi
4754

4855
if [ $rv -ne 0 ]; then
4956
echo -e "${R}Unexpected error, exit code: $rv${DEF}"

0 commit comments

Comments
 (0)