aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>2000-01-21 00:46:39 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>2000-01-21 00:46:39 +0000
commit95e3631119311f1ae93bb20077b75c1846b34444 (patch)
treea36b05d12deecce9d2d3e89af9d088d040cb41c0 /init-sh
parent8843bd99d5d98fc907ba318973fd0c455e7e8a01 (diff)
downloadmsec-95e3631119311f1ae93bb20077b75c1846b34444.tar
msec-95e3631119311f1ae93bb20077b75c1846b34444.tar.gz
msec-95e3631119311f1ae93bb20077b75c1846b34444.tar.bz2
msec-95e3631119311f1ae93bb20077b75c1846b34444.tar.xz
msec-95e3631119311f1ae93bb20077b75c1846b34444.zip
*** empty log message ***
Diffstat (limited to 'init-sh')
-rwxr-xr-xinit-sh/grpuser.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/init-sh/grpuser.sh b/init-sh/grpuser.sh
index 3493100..7186ff5 100755
--- a/init-sh/grpuser.sh
+++ b/init-sh/grpuser.sh
@@ -104,8 +104,11 @@ RefreshAdd() {
else
echo "Adding user \"${user_name}\" to group \"${group_name}\"."
IsGroupExisting;
- AppendUserToGroup;
- ModifyFile;
+ IsUserAlreadyInGroup;
+ if [[ $? == 1 ]]; then
+ AppendUserToGroup;
+ ModifyFile;
+ fi
fi
done
fi