Hello everyone!
I want to enable the Cron-Job for nextcloud background activities, but unfortunately I can't get it to work...
I thought this command is going to work:
Which returned:
Defaulted container "nextcloud" out of: nextcloud, init-postgresdb (init)
Then looked up, which user am i for the container:
Which returned:
So now i know, that i need to change the user for the container to "www-data", but how is this possible?
I would greatly appreciate any help!
I want to enable the Cron-Job for nextcloud background activities, but unfortunately I can't get it to work...
I thought this command is going to work:
Code:
sudo -u www-data k3s kubectl exec -n ix-nextcloud --stdin --tty nextcloud-66c598859-6vklm -- php -f cron.php
Which returned:
Defaulted container "nextcloud" out of: nextcloud, init-postgresdb (init)
Code:
Console has to be executed with the user that owns the file config/config.php Current user id: 0 Owner id of config.php: 33 command terminated with exit code 1
Then looked up, which user am i for the container:
Code:
sudo -u www-data k3s kubectl exec -n ix-nextcloud --stdin --tty nextcloud-66c598859-6vklm -- whoami
Which returned:
Code:
Defaulted container "nextcloud" out of: nextcloud, init-postgresdb (init) root
So now i know, that i need to change the user for the container to "www-data", but how is this possible?
I would greatly appreciate any help!