Dantheman Posted March 6 Share Posted March 6 Beste Unraiders, Wie o wie kan mij helpen om een OCC commando uit te voeren op de juiste manier in Docker Nextcloud AIO? Bedoeling is om dit commando uit te voeren ivm een melding in Nextcloud over de "default_phone_region". Het gaat om dit commando: docker exec --user www-data nextcloud-aio-nextcloud php occ config:system:set default_phone_region --value="NL" Quote Link to comment
MAM59 Posted March 6 Share Posted March 6 you can open a shell for the currently running docker (right click on docker icon). There you can start occ directly. Quote Link to comment
Dantheman Posted March 6 Author Share Posted March 6 Thanks for the quick response 👍 I have tried the shell command directly in the container where nextcloud is, but i get the following errors... Quote Link to comment
Dantheman Posted March 6 Author Share Posted March 6 Not sure what the exact commando should be... Quote Link to comment
MAM59 Posted March 6 Share Posted March 6 (edited) within the shell do an ls -al and see, what user is needed (-u needs a NAME, not a number) like [[email protected] ~]# cd /cloud/nextcloud/ [[email protected] /cloud/nextcloud]# v total 176 drwxrwxrwx 15 www www 512 24 Feb. 14:02 . drwxr-xr-x 11 root wheel 512 6 Sep. 09:27 .. -rw-r--r-- 1 www www 3345 24 Feb. 14:03 .htaccess -rw-r--r-- 1 www www 101 23 Feb. 10:30 .user.ini drwxr-xr-x 47 www www 1024 24 Feb. 14:02 3rdparty drwxr-xr-x 60 www www 1536 24 Feb. 14:02 apps -rw-r--r-- 1 www www 19327 23 Feb. 10:30 AUTHORS drwxr-xr-x 2 www www 512 24 Feb. 14:03 config -rw-r--r-- 1 www www 4095 23 Feb. 10:30 console.php -rw-r--r-- 1 www www 34520 23 Feb. 10:30 COPYING drwxr-xr-x 23 www www 1024 24 Feb. 14:02 core -rw-r--r-- 1 www www 6317 23 Feb. 10:30 cron.php drwxrwx--- 10 www www 512 6 März 00:00 data drwxr-xr-x 2 www www 7168 24 Feb. 14:02 dist -rw-r--r-- 1 www www 156 23 Feb. 10:30 index.html -rw-r--r-- 1 www www 3456 23 Feb. 10:30 index.php drwxr-xr-x 6 www www 512 24 Feb. 14:02 lib -rw-r--r-- 1 www www 283 23 Feb. 10:30 occ drwxr-xr-x 2 www www 512 24 Feb. 14:02 ocm-provider so here it would be "www". then do sudo -u NAME php occ... This should work (I dont run this docker, I cannot look it up) Edited March 6 by MAM59 Quote Link to comment
Dantheman Posted March 6 Author Share Posted March 6 Thanks for your help, going to try that command.... Quote Link to comment
Dantheman Posted March 6 Author Share Posted March 6 (edited) Got it!! 🥳 So the right command should be: sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ config:system:set default_phone_region --value="NL" For anyone else in the future.... I did run this command through the Unraid terminal directly, not through the docker container console (shell) of Nextcloud. Thanks for your help MAM59 👍 Edited March 6 by Dantheman Quote Link to comment
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.