Skip to content

Commit 126801a

Browse files
committed
Update taginfo script
1 parent 20ac4da commit 126801a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hetzner/taginfo/taginfo.production.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ services:
1616
- |
1717
set -ex
1818
echo "#!/bin/bash
19+
rm -rf /usr/src/app/data/*
1920
/usr/src/app/start.sh
2021
sleep 7200
2122
# restart web container
2223
curl -X POST --unix-socket /var/run/docker.sock http://v1.41/containers/taginfo_web/restart" > /run_task.sh
2324
chmod +x /run_task.sh
24-
25+
/run_task.sh
2526
# 2. Set cron: Run every 3 days at 3:00 AM
2627
echo "0 8 */3 * * /run_task.sh >> /var/log/taginfo-cron.log 2>&1" | crontab -
2728
@@ -30,4 +31,5 @@ services:
3031
env_file:
3132
- ./.env.taginfo
3233
networks:
33-
- ohm_network
34+
- ohm_network
35+

0 commit comments

Comments
 (0)