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

10 lines
386 B
INI

[Unit]
Description=Nextcloud cron and scan for any new ebooks
[Service]
Type=simple
ExecStart=/usr/bin/podman 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'"
[Install]
WantedBy=default.target