From bf86e22d11c55755e28337e2a0164f2bb1958be0 Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Sat, 3 Jan 2015 13:10:38 +0100 Subject: [PATCH] Rename variables --- entrypoint | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/entrypoint b/entrypoint index a96283d..c0d776e 100755 --- a/entrypoint +++ b/entrypoint @@ -6,7 +6,7 @@ for users in "$@"; do pass="${data[1]}" if [ "${data[2]}" == "e" ]; then - chpasswdParams="-e" + chpasswdOptions="-e" uid="${data[3]}" gid="${data[4]}" else @@ -14,27 +14,27 @@ for users in "$@"; do gid="${data[3]}" fi - useraddParams="--create-home --no-user-group" + useraddOptions="--create-home --no-user-group" if [ -n "$uid" ]; then - useraddParams="$useraddParams --non-unique --uid $uid" + useraddOptions="$useraddOptions --non-unique --uid $uid" fi if [ -n "$gid" ]; then - useraddParams="$useraddParams --gid $gid" + useraddOptions="$useraddOptions --gid $gid" groupadd --gid $gid $gid fi - useradd $useraddParams "$user" + useradd $useraddOptions $user chown root:root /home/$user chmod 755 /home/$user if [ -z "$pass" ]; then pass="$(echo `