diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2017-11-16 11:00:55 -0500 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2017-11-16 11:04:06 -0500 |
commit | e124caa9e9a2493587027854a2899c6def6e2c18 (patch) | |
tree | f330531d141034c79997074724233604aa3cee20 /configs/mate-openrc/root-image/root/.scriptsInstallation/language/es/userAccount.sh | |
parent | 703af9dc9078d41909af18e2eab20a7963414d0d (diff) |
restore deleted configs
Diffstat (limited to 'configs/mate-openrc/root-image/root/.scriptsInstallation/language/es/userAccount.sh')
-rwxr-xr-x | configs/mate-openrc/root-image/root/.scriptsInstallation/language/es/userAccount.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configs/mate-openrc/root-image/root/.scriptsInstallation/language/es/userAccount.sh b/configs/mate-openrc/root-image/root/.scriptsInstallation/language/es/userAccount.sh new file mode 100755 index 0000000..4ed7437 --- /dev/null +++ b/configs/mate-openrc/root-image/root/.scriptsInstallation/language/es/userAccount.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +user=$(cat /temporal | grep "userName") + +password=$(dialog --stdout --passwordbox "Introduce la contraseñara para el usuario ${user#*=}" 8 40) + +while [[ $password != $password2 ]]; do + password2=$(dialog --stdout --passwordbox "Repite la contraseña" 8 40) +done + +useradd -m -g users -G "wheel" -s /bin/bash -p $(openssl passwd $password) ${user#*=} + +exit |