From 9d972acce8744e0fffd89b92708c33b40f80e482 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 731cfd2b..36f8227a 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