From 5d51fa38d9ad8979c7ccd250dec3c239f05d0657 Mon Sep 17 00:00:00 2001 From: Denis Andrejew Date: Mon, 29 Dec 2014 22:08:15 +0100 Subject: [PATCH] fixing gid handling if group doesn't exist yet --- run | 1 + 1 file changed, 1 insertion(+) diff --git a/run b/run index ea281ab..5023b48 100644 --- a/run +++ b/run @@ -22,6 +22,7 @@ for users in "$@"; do if [ -n "$gid" ]; then useraddParams="$useraddParams -g $gid" + groupadd -g $gid $gid fi useradd $useraddParams "$user"