SnowMB / nextcloud

Nextcloud docker-compose examples
GNU Affero General Public License v3.0
46 stars 4 forks source link

Cannot add 'htaccess.RewriteBase' => '/', to config.php #4

Open cjoy opened 8 years ago

cjoy commented 8 years ago

I am using the collabora docker-compose example. I managed to add: 'htaccess.RewriteBase' => '/' to config.php, but I need to manually update the .htaccess file using "sudo php /var/www/html/occ maintance:update:html

Can you tell me how I would accomplish this?

Cheers

cjoy commented 8 years ago

I have tried: docker exec e5b5540f5be7 sudo -u www-data php /var/www/html/occ but sudo is not installed and can't be installed in the nextcloud container and I get the following error rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused \"exec: \\\"sudo\\\": executable file not found in $PATH\"\n"

I had to manually run via docker exec

apt-get update apt-get install sudo sudo -u www-data php /var/www/html/occ maintance:update:htaccess

and then restart all conainers via docker-compose

in order to just add the rebase configuration.