You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enter the docker container as root. note that this is tricky as apparently you can't just use -u root for some reason (this root does not have superuser privs)
Why are you going through hell to copy the config.php file out of the container, when it already lives on your filesystem at /mash/nextcloud/data/config/config.php.
This directory is mounted from the host into the container. The file is created by Nextcloud itself (the first time it starts), but later lives outside, on the filesystem. You can edit the file there.
Otherwise, you're probably right: the playbook's adjust-nextcloud-config tag could adjust trusted_domains. However, this value seems to be an array of strings, so adding support for it next to the others may require some changes:
to reproduce:
create mash-nextcloud for testing using a temporary url.
then change the url and run
just setup-all
again, and then runjust run-tags adjust-nextcloud-config
in config/config.php,
trusted_domains
still points to the old url, and throws an error.workaround:
docker cp mash-nextcloud-server:/var/www/html/config/config.php .
vi config.php
docker cp config.php mash-nextcloud-server:/var/www/html/config/config.php
-u root
for some reason (this root does not have superuser privs)docker inspect --format {{.State.Pid}} mash-nextcloud-server
sudo nsenter --target {pid of process} --mount --uts --ipc --net --pid
ls -al
andchown
to fix owner of config/config.phpThe text was updated successfully, but these errors were encountered: