Don't create the znc user unless use_systemd is set

This commit is contained in:
Nick Bebout 2011-08-15 21:18:55 -05:00
parent 485cb0fb01
commit c2f07caf68
1 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,7 @@ chmod -x modules/q.cpp
%__make %{?_smp_mflags}
%pre
%if %{use_systemd}
getent group znc >/dev/null || groupadd -r znc
getent passwd znc >/dev/null || \
useradd -r -g znc -d /var/lib/znc -s /sbin/nologin \
@ -116,6 +117,7 @@ getent passwd znc >/dev/null || \
mkdir -p /var/lib/znc
chown znc:znc /var/lib/znc
exit 0
%endif
%install
%__rm -Rf "%{buildroot}"