From 2ecef5446a663b15392df94efaae869a91e1a531 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Tue, 26 Oct 2021 00:14:26 +0200 Subject: [PATCH] picsort fixes --- bundles/nextcloud-picsort/files/nextcloud-picsort | 4 ++-- bundles/nextcloud-picsort/metadata.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/nextcloud-picsort/files/nextcloud-picsort b/bundles/nextcloud-picsort/files/nextcloud-picsort index 9aba5d7..86215b5 100644 --- a/bundles/nextcloud-picsort/files/nextcloud-picsort +++ b/bundles/nextcloud-picsort/files/nextcloud-picsort @@ -42,8 +42,8 @@ if [ "$SCAN" == "TRUE" ]; then # find "$SOURCEPATH/"* -type d -empty -delete >> /var/echo/nc-picsort.echo # nextcloud app bug when deleting folders chown -R www-data:www-data "$DESTINATIONPATH" chmod -R 777 "$DESTINATIONPATH" - sudo -u www-data php /var/www/nextcloud/occ files:scan $USER - sudo -u www-data php /var/www/nextcloud/occ preview:generate-all $USER + sudo -u www-data php /opt/nextcloud/occ files:scan $USER + sudo -u www-data php /opt/nextcloud/occ preview:generate-all $USER fi echo "FINISH." diff --git a/bundles/nextcloud-picsort/metadata.py b/bundles/nextcloud-picsort/metadata.py index 513cdea..416533a 100644 --- a/bundles/nextcloud-picsort/metadata.py +++ b/bundles/nextcloud-picsort/metadata.py @@ -9,7 +9,7 @@ def systemd_timers(metadata): 'systemd-timers': { f'nextcloud-picsort-{user}': { 'command': f'/opt/nextcloud-picsort {q(user)} {q(paths["source"])} {q(paths["destination"])}', - 'when': '*:0/5', + 'when': '*:0/10', } for user, paths in metadata.get('nextcloud-picsort').items() }