scripts/fogcutter/docker/nextcloud/nextcloud-cron.service

10 lines
386 B
INI
Raw Normal View History

2020-12-26 23:16:52 -05:00
[Unit]
2021-01-09 13:17:54 -05:00
Description=Nextcloud cron and scan for any new ebooks
2020-12-26 23:16:52 -05:00
[Service]
Type=simple
2021-05-16 21:41:38 -04:00
ExecStart=/usr/bin/docker exec nextcloud /bin/bash -c "if ! command -v sudo &> /dev/null; then apt-get update && apt-get install -y sudo; fi; sudo -u www-data php -f /var/www/html/cron.php && sudo -u www-data /var/www/html/occ files:scan --path='/pew/files/ebooks'"
2020-12-26 23:16:52 -05:00
[Install]
WantedBy=default.target