Browse Source

fix bug in service

master
Mar Alegre 2 weeks ago
parent
commit
ab2534dd8a
  1. 2
      nextcloud/Systemdfile
  2. 2
      nextcloud/assets/systemd/nextcloud-cron.service

2
nextcloud/Systemdfile

@ -23,7 +23,7 @@ nc-occ app:install calendar
nc-occ app:install contacts nc-occ app:install contacts
nc-occ app:install notes nc-occ app:install notes
nc-occ app:install bookmarks nc-occ app:install bookmarks
#nc-occ app:install mail nc-occ app:install mail
# disable apps we don't want # disable apps we don't want
nc-occ app:disable comments dashboard federation files_trashbin firstrunwizard recommendations support survey_client systemtags weather_status nc-occ app:disable comments dashboard federation files_trashbin firstrunwizard recommendations support survey_client systemtags weather_status

2
nextcloud/assets/systemd/nextcloud-cron.service

@ -4,6 +4,6 @@ Description=Nextcloud cron.php job
[Service] [Service]
User=www-data User=www-data
# Only run if Nextcloud is running # Only run if Nextcloud is running
ExecCondition=/usr/local/bin/nc-occ status -e ExecCondition=/usr/bin/php -f /var/www/nextcloud/occ status -e
ExecStart=/usr/bin/php -f /var/www/nextcloud/cron.php ExecStart=/usr/bin/php -f /var/www/nextcloud/cron.php
KillMode=process KillMode=process

Loading…
Cancel
Save