RPM: call usermod w/ valid options on openSUSE

fixes #9378
This commit is contained in:
Alexander A. Klimov 2015-06-09 18:16:36 +02:00
parent cd416f0466
commit fa75243f02
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ cp -prv packages/files/config/modules/setup %{buildroot}/%{configdir}/modules/
%pre %pre
getent group icingacmd >/dev/null || groupadd -r icingacmd getent group icingacmd >/dev/null || groupadd -r icingacmd
%if 0%{?suse_version} %if 0%{?suse_version} && 0%{?suse_version} < 01200
usermod -A icingacmd,%{icingawebgroup} %{wwwuser} usermod -A icingacmd,%{icingawebgroup} %{wwwuser}
%else %else
usermod -a -G icingacmd,%{icingawebgroup} %{wwwuser} usermod -a -G icingacmd,%{icingawebgroup} %{wwwuser}