changed docker for better persistence

This commit is contained in:
socrates
2023-12-12 12:36:36 +01:00
parent db51753ff9
commit 5cc27ca6b9
5 changed files with 22 additions and 8 deletions

12
run.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
if ! test -f "/app/conf/crontab"; then
cp "/app/init/crontab" "/app/conf/crontab"
fi
crontab "/app/conf/crontab"
if ! test -f "/app/conf/conf.json"; then
cp "/app/init/conf.json" "/app/conf/conf.json"
fi
cron -f