[guacd/el6] User creation is for all distributions

Simone Caronni slaanesh at fedoraproject.org
Wed Jan 30 15:52:13 UTC 2013


commit bc760e709afafd22fb494cde9b8f967c64361fa5
Author: Simone Caronni <negativo17 at gmail.com>
Date:   Wed Jan 30 16:50:39 2013 +0100

    User creation is for all distributions

 guacd.spec |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/guacd.spec b/guacd.spec
index ed91402..540b2b1 100644
--- a/guacd.spec
+++ b/guacd.spec
@@ -81,7 +81,6 @@ install -p -m 755 -D %{SOURCE3} %{buildroot}%{_initrddir}/%{name}
 
 %endif
 
-%if 0%{?fedora} == 16 || 0%{?fedora} == 17
 
 %pre
 getent group %username >/dev/null || groupadd -r %username &>/dev/null || :
@@ -89,6 +88,8 @@ getent passwd %username >/dev/null || useradd -r -s /sbin/nologin \
     -d %{_sharedstatedir}/guacd -M -c 'Guacamole proxy daemon' -g %username %username &>/dev/null || :
 exit 0
 
+%if 0%{?fedora} == 16 || 0%{?fedora} == 17
+
 %post
 if [ $1 -eq 1 ] ; then
     # Initial installation


More information about the scm-commits mailing list