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

10 lines
282 B
INI
Raw Normal View History

2020-12-26 23:16:52 -05:00
[Unit]
Description=Nextcloud cron
[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"
[Install]
WantedBy=default.target