[znc] Don't create the znc user unless use_systemd is set

Nick Bebout nb at fedoraproject.org
Tue Aug 16 02:19:19 UTC 2011


commit c2f07caf68a2ea9b7201ffa09cdde28246aa43f6
Author: Nick Bebout <nb at fedoraproject.org>
Date:   Mon Aug 15 21:18:55 2011 -0500

    Don't create the znc user unless use_systemd is set

 znc.spec |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/znc.spec b/znc.spec
index a477e25..b41fbfc 100644
--- a/znc.spec
+++ b/znc.spec
@@ -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}"


More information about the scm-commits mailing list