diff --git a/auto-snapshot/config.json b/auto-snapshot/config.json index 37f2f95..2ae36c3 100644 --- a/auto-snapshot/config.json +++ b/auto-snapshot/config.json @@ -1,7 +1,7 @@ { "name": "Auto Snapshot", "url": "https://git.asperti.com/paspo/hassio-addons", - "version": "0.1.1", + "version": "0.1.2", "slug": "auto-snapshot", "description": "Take hassio snapshots with fixed timings and manage retention", "startup": "before", diff --git a/auto-snapshot/run.sh b/auto-snapshot/run.sh index 563865e..a8c470d 100644 --- a/auto-snapshot/run.sh +++ b/auto-snapshot/run.sh @@ -5,10 +5,12 @@ CONFIG_PATH=/data/options.json CRON=$(jq --raw-output ".cron" $CONFIG_PATH) -echo "$CRON /snapshot.sh" > /var/spool/cron/crontabs/root +echo "$CRON /snapshot.sh >> /var/log/cron.log" > /var/spool/cron/crontabs/root # change perms chmod 600 /var/spool/cron/crontabs/root echo "Auto Snapshot ready." -crond -f +crond +touch /var/log/cron.log +tail -f /var/log/cron.log \ No newline at end of file