From e0a0d1f61bbb16f00ade0b0a0a7801c06f5a5c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Juri=C5=A1i=C4=87?= Date: Tue, 30 Jul 2024 09:03:08 +0200 Subject: [PATCH] Removed confiles and updated postinst (thanks citronalco for sugestion) --- debian/conffiles | 1 - debian/nextcloud-server.postinst | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 debian/conffiles diff --git a/debian/conffiles b/debian/conffiles deleted file mode 100644 index e345789..0000000 --- a/debian/conffiles +++ /dev/null @@ -1 +0,0 @@ -/var/www/nextcloud/.htaccess diff --git a/debian/nextcloud-server.postinst b/debian/nextcloud-server.postinst index c223db4..0bc309b 100644 --- a/debian/nextcloud-server.postinst +++ b/debian/nextcloud-server.postinst @@ -42,6 +42,7 @@ configure) echo "Nextcloud is not configured, please use open web browser http:///nextcloud" echo "After configure please run su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ config:system:set --value true upgrade.disable-web'" elif [ "$(su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ status' | grep 'installed:' | cut -f2 -d ':' | xargs)" = "true" ]; then + su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ maintenance:update:htaccess' su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ upgrade' su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ db:add-missing-indices' su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ config:system:set --value true upgrade.disable-web' >/dev/null || true