diff --git a/customers/base/nextcloud-deployment.yml b/customers/base/nextcloud-deployment.yml index f37f41a..10ea074 100644 --- a/customers/base/nextcloud-deployment.yml +++ b/customers/base/nextcloud-deployment.yml @@ -23,7 +23,7 @@ spec: image: docker.sunet.se/drive/nextcloud-custom:30.0.5.2-1 volumeMounts: - name: nextcloud-config - mountPath: /var/www/html/config/config.php + mountPath: /config.php subPath: config.php - name: apache-config mountPath: /etc/apache2/sites-enabled/000-default.conf @@ -192,4 +192,3 @@ spec: items: - key: "config.php" path: "config.php" - defaultMode: 0666 diff --git a/customers/base/script-configmap.yml b/customers/base/script-configmap.yml index 48afed5..638de69 100644 --- a/customers/base/script-configmap.yml +++ b/customers/base/script-configmap.yml @@ -5,8 +5,10 @@ metadata: data: nc-upgrade: | #!/bin/bash + cp /config.php /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 php -d apc.enable_cli=1 -d memory_limit=-1 /var/www/html/occ db:add-missing-columns || true php -d apc.enable_cli=1 -d memory_limit=-1 /var/www/html/occ db:add-missing-indices || true +