From 6d01f8d8609b037fcb5ef38840a5e6bc78530347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Chavero?= Date: Tue, 12 Sep 2023 20:02:00 -0600 Subject: [PATCH] Fix post install bugs - Fix CAN_INSTALL permissions - Restart php-fpm --- nextcloud.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nextcloud.spec b/nextcloud.spec index cac427d..f3a4498 100644 --- a/nextcloud.spec +++ b/nextcloud.spec @@ -384,8 +384,11 @@ INSTALLED=$(grep -c secret /etc/nextcloud/config.php) if [ "${INSTALLED}" -eq "0" ]; then echo "First time installation, enabling installation wizard" touch %{_sysconfdir}/%{name}/CAN_INSTALL + chown apache:apache %{_sysconfdir}/%{name}/CAN_INSTALL fi +/usr/bin/systemctl restart php-fpm.service > /dev/null 2>&1 || : + %post httpd /usr/bin/systemctl reload httpd.service > /dev/null 2>&1 || : /usr/bin/systemctl reload php-fpm.service > /dev/null 2>&1 || :