May 4, 20215 yr Hi! I’m trying to regularly update my nextcloud database since I’m using an inbox folder there to import files to Paperless-ng. Previously this script has worked in User Scripts: #!/bin/bash docker exec nextcloud sudo -u abc php /config/www/nextcloud occ files:scan -all The script has stopped working though. Can anyone see/tell me what is wrong with it? If I do the steps of the command separately it works, i.e. docker exec -it nextcloud /bin/bash then cd to nextcloud and then the sudo command. //M Edited June 8, 20215 yr by muppie
May 4, 20215 yr This is what I use to scan my external storages docker exec --user www-data nextcloud php console.php files:scan admin --path=/admin/files/gdrive
June 8, 20215 yr Author On 5/4/2021 at 9:40 PM, juan11perez said: This is what I use to scan my external storages docker exec --user www-data nextcloud php console.php files:scan admin --path=/admin/files/gdrive Thanks! Sorry for the late reply! I’ll try it
June 8, 20215 yr Author It didn’t work but this did: docker exec -it nextcloud sudo -u abc cd /config/www/nextcloud php occ files:scan <user>
Archived
This topic is now archived and is closed to further replies.