diff options
| author | Jonathan Bauer | 2013-02-25 16:31:07 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2013-02-25 16:31:07 +0100 |
| commit | 2c9fbbf3af5bcd72ee34871a275bbd4757770431 (patch) | |
| tree | a9c117e5753716fd1bd87e7ab231460876a7f5ea /helper | |
| parent | delete random functions in random files (diff) | |
| download | tm-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.inc | 2 |
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 |
