Skip to content

Commit

Permalink
add additional things to nextcloud cron task
Browse files Browse the repository at this point in the history
  • Loading branch information
lilioid committed Oct 7, 2024
1 parent 496329a commit 59abe5b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nextcloud/cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ mkdir -p /run/php
export USER=www-data HOME=/home/www-data

echo "Syncing system address books with dav"
su -s /var/www/nextcloud/occ www-data dav:sync-system-addressbook
su -s /var/www/nextcloud/occ www-data -- dav:sync-system-addressbook

echo "Running cron.php"
su -s /usr/bin/php www-data /var/www/nextcloud/cron.php

echo "Add missing db indices"
su -s /var/www/nextcloud/occ www-data -- db:add-missing-indices

echo "Running expensive maintenance repair tasks"
su -s /var/www/nextcloud/occ www-data -- maintenance:repair --include-expensive

0 comments on commit 59abe5b

Please sign in to comment.