summaryrefslogtreecommitdiffstats
path: root/helper
diff options
context:
space:
mode:
authorJonathan Bauer2013-02-25 16:31:07 +0100
committerJonathan Bauer2013-02-25 16:31:07 +0100
commit2c9fbbf3af5bcd72ee34871a275bbd4757770431 (patch)
treea9c117e5753716fd1bd87e7ab231460876a7f5ea /helper
parentdelete random functions in random files (diff)
downloadtm-scripts-2c9fbbf3af5bcd72ee34871a275bbd4757770431.tar.gz
tm-scripts-2c9fbbf3af5bcd72ee34871a275bbd4757770431.tar.xz
tm-scripts-2c9fbbf3af5bcd72ee34871a275bbd4757770431.zip
fix for user password gen
Diffstat (limited to 'helper')
-rw-r--r--helper/useradd.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/useradd.inc b/helper/useradd.inc
index d1191aed..798e997c 100644
--- a/helper/useradd.inc
+++ b/helper/useradd.inc
@@ -133,7 +133,7 @@ add_user() {
else
pdebug "Hashing password '$PASSWORD' for '$USER'"
local PW=$(mkpasswd -m sha-512 "${PASSWORD}")
- [ -z "${PW}" ] && PASSWORD=$(openssl passwd -1 "${PASSWORD}")
+ [ -z "${PW}" ] && PW=$(openssl passwd -1 "${PASSWORD}")
[ -z "${PW}" ] && perror "Error generating hashed password for $USER"
PASSWORD=$PW
fi