Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

(SOLVED) Nextcloud database update user script

Featured Replies

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 by muppie

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

  • 1 month later...
  • 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

  • Author

It didn’t work but this did:

 

docker exec -it nextcloud sudo -u abc cd /config/www/nextcloud php occ files:scan <user>
 

  • muppie changed the title to (SOLVED) Nextcloud database update user script

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.