From 876b07bd0aaca18ca5a8597238f0dbcf3c907c76 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Fri, 24 Jan 2025 17:17:09 +0100 Subject: [PATCH] Put config in normal filesystem --- customers/base/nextcloud-deployment.yml | 3 +-- customers/base/script-configmap.yml | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) 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 +