summaryrefslogtreecommitdiff
path: root/configs/mate-openrc/root-image/root/.scriptsInstallation/language/pt/userAccount.sh
diff options
context:
space:
mode:
authorDavid P <megver83@openmailbox.org>2017-09-29 14:18:19 -0300
committerDavid P <megver83@openmailbox.org>2017-09-29 14:18:19 -0300
commitf5d62fdcd4a6d351fa25af3b3e443ba4de67a802 (patch)
treeda3bb909024f145454fb7ff460931bbb8c4311af /configs/mate-openrc/root-image/root/.scriptsInstallation/language/pt/userAccount.sh
parent50a0dc41d6edbe36d081bcd0fab7d79f2a0d116a (diff)
Added configs/profile-openrc
Diffstat (limited to 'configs/mate-openrc/root-image/root/.scriptsInstallation/language/pt/userAccount.sh')
-rwxr-xr-xconfigs/mate-openrc/root-image/root/.scriptsInstallation/language/pt/userAccount.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/configs/mate-openrc/root-image/root/.scriptsInstallation/language/pt/userAccount.sh b/configs/mate-openrc/root-image/root/.scriptsInstallation/language/pt/userAccount.sh
new file mode 100755
index 0000000..408beba
--- /dev/null
+++ b/configs/mate-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