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