summaryrefslogtreecommitdiff
path: root/configs/lxde-openrc/root-image/root/.scriptsInstallation/language/pt/userAccount.sh
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2017-11-06 17:18:46 -0300
committerDavid P <megver83@parabola.nu>2017-11-06 17:18:46 -0300
commit703af9dc9078d41909af18e2eab20a7963414d0d (patch)
treed25cb89248cbaf4ef1bae4648966537e73c814ab /configs/lxde-openrc/root-image/root/.scriptsInstallation/language/pt/userAccount.sh
parent1bf80f77f7a8bb4ffdd203c60662421e3f8f589b (diff)
Add configs/lxde-openrc
Remove configs/mate and configs/mate-openrc
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