10 lines
282 B
INI
10 lines
282 B
INI
|
[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
|