diff --git a/READMETEMPLATE.md b/READMETEMPLATE.md index 291c504..3c98def 100644 --- a/READMETEMPLATE.md +++ b/READMETEMPLATE.md @@ -33,7 +33,6 @@ docker create \ --name=diskover \ -v :/config \ -v :/data \ - -v :/etc/crontabs/abc \ -e PGID= -e PUID= \ -e REDIS_HOST= \ -e REDIS_PORT= \ @@ -61,7 +60,6 @@ http://192.168.x.x:8080 would show you what's running INSIDE the container on po | `-p 1234` | the port(s) | | `-v /config` | diskover config | | `-v /data` | data directory to scan | -| `-v /etc/crontabs/abc` | crontab file to run dispatcher in cron | | `-e PGID` | for GroupID, see below for explanation | | `-e PUID` | for UserID, see below for explanation | | `-e REDIS_HOST` | Redis host [default: redis] | diff --git a/root/etc/cont-init.d/30-config b/root/etc/cont-init.d/30-config index 36c806e..c3eb97d 100644 --- a/root/etc/cont-init.d/30-config +++ b/root/etc/cont-init.d/30-config @@ -46,7 +46,9 @@ fi # import user crontabs rm /etc/crontabs/* -cp /config/crontabs/* /etc/crontabs/ +if [ $RUN_CRON ]; then + cp /config/crontabs/* /etc/crontabs/ +fi # permissions chmod +x \