summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Schneider2014-07-10 18:04:31 +0200
committerManuel Schneider2014-07-10 18:04:31 +0200
commit26370fb1e5639a6bb11457a8adac5451e448849c (patch)
tree83532870e5ab15942261e33f5f60fc6bba9b99aa
parent[pvs2] Add a startup script which starts pvs if vmchooser sets the appropriat... (diff)
parent[useradd.inc] GID is the 4th column not 3rd (diff)
downloadtm-scripts-26370fb1e5639a6bb11457a8adac5451e448849c.tar.gz
tm-scripts-26370fb1e5639a6bb11457a8adac5451e448849c.tar.xz
tm-scripts-26370fb1e5639a6bb11457a8adac5451e448849c.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
-rw-r--r--doc/README.archlinux1
-rw-r--r--remote/includes/useradd.inc2
2 files changed, 2 insertions, 1 deletions
diff --git a/doc/README.archlinux b/doc/README.archlinux
new file mode 100644
index 00000000..9daeafb9
--- /dev/null
+++ b/doc/README.archlinux
@@ -0,0 +1 @@
+test
diff --git a/remote/includes/useradd.inc b/remote/includes/useradd.inc
index 5d7d405d..a8f407f7 100644
--- a/remote/includes/useradd.inc
+++ b/remote/includes/useradd.inc
@@ -44,7 +44,7 @@ get_gid_for_user()
{
[ $# -ne 1 ] && perror "get_gid_for_user fail. want 1 argument."
[ -z "${_PASSWD}" ] && perror "passwd file not set."
- local _GID=$(grep -E "^$1:[^:]*:[^:]*:[0-9]+:" "${_PASSWD}" | head -1 | awk -F ':' '{print $3}')
+ local _GID=$(grep -E "^$1:[^:]*:[^:]*:[0-9]+:" "${_PASSWD}" | head -1 | awk -F ':' '{print $4}')
echo ${_GID}
}