picsort fixes

This commit is contained in:
mwiegand 2021-10-26 00:14:26 +02:00
parent effded149a
commit 2ecef5446a
2 changed files with 3 additions and 3 deletions

View file

@ -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."

View file

@ -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()
}