diff --git a/customers/base/nextcloud-configmap.yml b/customers/base/nextcloud-configmap.yml index 16057f1..dd889b2 100644 --- a/customers/base/nextcloud-configmap.yml +++ b/customers/base/nextcloud-configmap.yml @@ -26,7 +26,7 @@ data: ), ), 'appstoreenabled' => false, - 'config_is_read_only' => true, + 'config_is_read_only' => false, 'csrf.disabled' => true, 'datadirectory' => '/var/www/html/data', 'dbhost' => getenv('MYSQL_HOST') . ':' .getenv('MYSQL_PORT'), diff --git a/customers/base/script-configmap.yml b/customers/base/script-configmap.yml index 638de69..561d5ec 100644 --- a/customers/base/script-configmap.yml +++ b/customers/base/script-configmap.yml @@ -6,6 +6,7 @@ data: nc-upgrade: | #!/bin/bash cp /config.php /var/www/html/config/config.php + chown www-data:root /var/www/html/config/config.php php -d apc.enable_cli=1 -d memory_limit=-1 /var/www/html/occ upgrade || true php -d apc.enable_cli=1 -d memory_limit=-1 /var/www/html/occ maintenance:repair || true php -d apc.enable_cli=1 -d memory_limit=-1 /var/www/html/occ db:add-missing-primary-keys || true