summaryrefslogtreecommitdiff
path: root/configs/lxde-openrc/root-image/root/.scriptsInstallation/language/pt/userAccount.sh
diff options
context:
space:
mode:
Diffstat (limited to 'configs/lxde-openrc/root-image/root/.scriptsInstallation/language/pt/userAccount.sh')
-rwxr-xr-xconfigs/lxde-openrc/root-image/root/.scriptsInstallation/language/pt/userAccount.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/configs/lxde-openrc/root-image/root/.scriptsInstallation/language/pt/userAccount.sh b/configs/lxde-openrc/root-image/root/.scriptsInstallation/language/pt/userAccount.sh
new file mode 100755
index 0000000..408beba
--- /dev/null
+++ b/configs/lxde-openrc/root-image/root/.scriptsInstallation/language/pt/userAccount.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+user=$(cat /temporal | grep "userName")
+
+password=$(dialog --stdout --passwordbox "Insira a senha para o usuário ${user#*=}" 8 40)
+
+while [[ $password != $password2 ]]; do
+ password2=$(dialog --stdout --passwordbox "Repita a senha" 8 40)
+done
+
+useradd -m -g users -G "wheel" -s /bin/bash -p $(openssl passwd $password) ${user#*=}
+
+exit