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