Put config in normal filesystem

This commit is contained in:
Micke Nordin 2025-01-24 17:17:09 +01:00
parent 675dc269c3
commit 876b07bd0a
2 changed files with 3 additions and 2 deletions

View file

@ -23,7 +23,7 @@ spec:
image: docker.sunet.se/drive/nextcloud-custom:30.0.5.2-1 image: docker.sunet.se/drive/nextcloud-custom:30.0.5.2-1
volumeMounts: volumeMounts:
- name: nextcloud-config - name: nextcloud-config
mountPath: /var/www/html/config/config.php mountPath: /config.php
subPath: config.php subPath: config.php
- name: apache-config - name: apache-config
mountPath: /etc/apache2/sites-enabled/000-default.conf mountPath: /etc/apache2/sites-enabled/000-default.conf
@ -192,4 +192,3 @@ spec:
items: items:
- key: "config.php" - key: "config.php"
path: "config.php" path: "config.php"
defaultMode: 0666

View file

@ -5,8 +5,10 @@ metadata:
data: data:
nc-upgrade: | nc-upgrade: |
#!/bin/bash #!/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 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 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-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-columns || true
php -d apc.enable_cli=1 -d memory_limit=-1 /var/www/html/occ db:add-missing-indices || true php -d apc.enable_cli=1 -d memory_limit=-1 /var/www/html/occ db:add-missing-indices || true