diff options
author | David P <megver83@openmailbox.org> | 2017-09-29 14:18:19 -0300 |
---|---|---|
committer | David P <megver83@openmailbox.org> | 2017-09-29 14:18:19 -0300 |
commit | f5d62fdcd4a6d351fa25af3b3e443ba4de67a802 (patch) | |
tree | da3bb909024f145454fb7ff460931bbb8c4311af /configs/mate-openrc/root-image/root/.scriptsInstallation/language/en/userAccount.sh | |
parent | 50a0dc41d6edbe36d081bcd0fab7d79f2a0d116a (diff) |
Added configs/profile-openrc
Diffstat (limited to 'configs/mate-openrc/root-image/root/.scriptsInstallation/language/en/userAccount.sh')
-rwxr-xr-x | configs/mate-openrc/root-image/root/.scriptsInstallation/language/en/userAccount.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configs/mate-openrc/root-image/root/.scriptsInstallation/language/en/userAccount.sh b/configs/mate-openrc/root-image/root/.scriptsInstallation/language/en/userAccount.sh new file mode 100755 index 0000000..a9551d8 --- /dev/null +++ b/configs/mate-openrc/root-image/root/.scriptsInstallation/language/en/userAccount.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +user=$(cat /temporal | grep "userName") + +password=$(dialog --stdout --passwordbox "Insert ${user#*=} password" 8 40) + +while [[ $password != $password2 ]]; do + password2=$(dialog --stdout --passwordbox "Reply password" 8 40) +done + +useradd -m -g users -G "wheel" -s /bin/bash -p $(openssl passwd $password) ${user#*=} + +exit |