muppie Posted May 4, 2021 Posted May 4, 2021 (edited) 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, 2021 by muppie Quote
juan11perez Posted May 4, 2021 Posted May 4, 2021 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 Quote
muppie Posted June 8, 2021 Author Posted June 8, 2021 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 Quote
muppie Posted June 8, 2021 Author Posted June 8, 2021 It didn’t work but this did: docker exec -it nextcloud sudo -u abc cd /config/www/nextcloud php occ files:scan <user> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.