From d4f1d01b9c4a32bf3b800eefe95daa3d3e4c8cce Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Tue, 6 Jan 2026 14:40:29 -0300 Subject: [PATCH] nextcloud: reset empty config on boot --- services/nextcloud/deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/nextcloud/deployment.yaml b/services/nextcloud/deployment.yaml index 731cfd2..36f8227 100644 --- a/services/nextcloud/deployment.yaml +++ b/services/nextcloud/deployment.yaml @@ -28,6 +28,9 @@ spec: command: ["/bin/sh", "-c"] args: - | + if [ ! -s /var/www/html/config/config.php ]; then + rm -f /var/www/html/config/config.php || true + fi chown 33:33 /var/www/html || true chmod 775 /var/www/html || true chown -R 33:33 /var/www/html/config || true