RPM/php-fpm: Call a2enmod rewrite on SLES/OpenSUSE

refs #9669
This commit is contained in:
Eric Lippmann 2015-07-24 13:15:47 +02:00
parent 0c01ac9444
commit 054c7b407b

View File

@ -179,6 +179,9 @@ Icinga Web 2 vendor library Zend
%prep
%setup -q
%clean
rm -rf %{buildroot}
%build
%install
@ -226,9 +229,6 @@ fi
%endif
exit 0
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{basedir}/application/controllers
@ -249,6 +249,14 @@ rm -rf %{buildroot}
%{docsdir}
%docdir %{docsdir}
%post
%if 0%{?suse_version}
if ! apache2ctl -M 2>/dev/null | grep -q rewrite_module; then
a2enmod rewrite >/dev/null
fi
%endif
exit 0
%pre common
if ! getent group %{icingaweb_group} >/dev/null; then