mirror of
https://github.com/atmoz/sftp.git
synced 2025-03-09 15:16:00 -04:00
Simpler subshell
This commit is contained in:
parent
2f921b9dfc
commit
beae8655d9
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ function createUser() {
|
|||
chmod 755 /home/$user
|
||||
|
||||
if [ -z "$pass" ]; then
|
||||
pass="$(echo `</dev/urandom tr -dc A-Za-z0-9 | head -c256`)"
|
||||
pass="$(tr -dc A-Za-z0-9 </dev/urandom | head -c256)"
|
||||
chpasswdOptions=""
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue