Fix usermod for SUSE and SLES

fixes #8359
This commit is contained in:
Eric Lippmann 2015-02-04 17:23:07 +01:00
parent 04357d21b6
commit 5014b5dc46
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ usermod -a -G icingaweb2 apache
SLES and OpenSUSE:
````
usermod -G icingaweb2 wwwrun
usermod -A icingaweb2 wwwrun
````
Debian and Ubuntu:

View File

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