Fix post install bugs

- Fix CAN_INSTALL permissions
- Restart php-fpm
This commit is contained in:
Iván Chavero 2023-09-12 20:02:00 -06:00
parent ad714e79e2
commit 63b1c07960

View File

@ -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 || :