[omd-commits] OMD Git: omd: omd: omd now creates system user accounts

git version control git at mathias-kettner.de
Sun Jul 10 10:14:44 CEST 2011


Module:   omd
Branch:   master
Commit:   f699c21b18ccc24df7ee78165b2cd78639de1887
URL:      http://omdistro.org/projects/omd/repository/revisions/f699c21b18ccc24df7ee78165b2cd78639de1887

Author:   Lars Michelsen <lm at mathias-kettner.de>
Date:     Sun Jul 10 10:14:40 2011 +0200
Commiter: Lars Michelsen <lm at mathias-kettner.de>
Date:     Sun Jul 10 10:14:40 2011 +0200

omd: omd now creates system user accounts

---

 packages/omd/omd |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/packages/omd/omd b/packages/omd/omd
index bda4bf3..0cfde8d 100644
--- a/packages/omd/omd
+++ b/packages/omd/omd
@@ -379,7 +379,7 @@ def useradd(sitename, uid = None, gid = None):
     useradd_options = g_info["USERADD_OPTIONS"]
     if uid != None:
         useradd_options += " -u %d" % int(uid)
-    if 0 != os.system("useradd %s -d '%s' -c 'OMD site %s' -g %s -G omd %s -s /bin/bash" % \
+    if 0 != os.system("useradd %s -r -d '%s' -c 'OMD site %s' -g %s -G omd %s -s /bin/bash" % \
                       (useradd_options, site_dir(sitename), sitename, sitename, sitename)):
         groupdel(sitename)
         bail_out("Error creating site user.")



More information about the omd-commits mailing list