[X2Go-Commits] [x2goserver] 01/01: x2goserver.spec: create group and user if they don't exist only.

git-admin at x2go.org git-admin at x2go.org
Mon Feb 2 23:52:56 CET 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2goserver.

commit 0838f4686fc0dd15c66840fecd665e38a7ea1bca
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Feb 2 23:52:47 2015 +0100

    x2goserver.spec: create group and user if they don't exist only.
---
 x2goserver.spec |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/x2goserver.spec b/x2goserver.spec
index 7875764..3131b9e 100644
--- a/x2goserver.spec
+++ b/x2goserver.spec
@@ -476,10 +476,10 @@ EOF
 %endif
 
 %pre common
-if getent group x2gouser 1>/dev/null; then
+if ! getent group x2gouser 1>/dev/null; then
     groupadd -r x2gouser
 fi
-if getent passwd x2gouser >/dev/null; then
+if ! getent passwd x2gouser >/dev/null; then
     useradd -r -g x2gouser -d %{_localstatedir}/lib/x2go -s /sbin/nologin \
             -c "x2go" x2gouser
 fi

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git


More information about the x2go-commits mailing list