RPM/php-fpm: Let -php-fpm-config require -common

refs #9669
This commit is contained in:
Eric Lippmann 2015-07-28 14:33:01 +02:00
parent 30be53b44a
commit 56472e9076

View File

@ -95,9 +95,6 @@ cp -pv packages/files/public/index.php %{buildr
cp -prv public/{css,img,js,error_norewrite.html} %{buildroot}/%{basedir}/public
%pre
if ! getent passwd %{icingaweb_user} >/dev/null; then
useradd -r %{icingaweb_user} -N -s /bin/false -g %{icingaweb_group}
fi
if ! getent group icingacmd >/dev/null; then
groupadd -r icingacmd
fi
@ -199,11 +196,17 @@ Icinga Web 2 PHP library
%package php-fpm-config
Summary: php-fpm configuration file for Icinga Web 2
Group: System Environment/Libraries
Requires: php-fpm
Requires: %{name}-common = %{version}-%{release}
%description php-fpm-config
php-fpm configuration file for Icinga Web 2
%pre php-fpm-config
if ! getent passwd %{icingaweb_user} >/dev/null; then
useradd -r %{icingaweb_user} -N -s /bin/false -g %{icingaweb_group}
fi
exit 0
%files php-fpm-config
%defattr(-,root,root)
%config(noreplace) %{phpfpm_configdir}/icingaweb2.conf