Nextcloud AIO occ commands??


Recommended Posts

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"

 

Link to comment

within the shell do an ls -al and see, what user is needed (-u needs a NAME, not a number)

like

[root@l3router ~]# cd /cloud/nextcloud/
[root@l3router /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 by MAM59
Link to comment

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 by Dantheman
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.