summaryrefslogtreecommitdiff
path: root/configs/profile/root-image/root/.install-systemd-mate/language/pt/userAccount.sh
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-03-27 20:53:45 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2022-05-01 23:58:14 -0400
commit5faac3e6a166a12a3a0cbb50be21a73632725651 (patch)
treef3118df3aecf2dc9f9f6013102f1c1d664599f53 /configs/profile/root-image/root/.install-systemd-mate/language/pt/userAccount.sh
parent640513f18fec15f24fedf43eb8e86dfae6530637 (diff)
consolidate install wizards into unified implementation
this is admitedly a huge change, nearly a total re-write the original scripts were very brittle and redundant even without functional changes, a DRY refactoring would have been nearly as massive the functional changes for rubustness, were also quite significant it would not have been feasibe to break them down * consolidated all per-init and per-language scripts sets into one * extracted translatable strings into separate file * remvoed confusing main menu, in favor of sequential prompts * better error handling and logging * added cfdisk support for CLI ISOs (GUI ISO still launches gparted) * ensure that all target partitions are formatted
Diffstat (limited to 'configs/profile/root-image/root/.install-systemd-mate/language/pt/userAccount.sh')
-rwxr-xr-xconfigs/profile/root-image/root/.install-systemd-mate/language/pt/userAccount.sh35
1 files changed, 0 insertions, 35 deletions
diff --git a/configs/profile/root-image/root/.install-systemd-mate/language/pt/userAccount.sh b/configs/profile/root-image/root/.install-systemd-mate/language/pt/userAccount.sh
deleted file mode 100755
index 30898e8..0000000
--- a/configs/profile/root-image/root/.install-systemd-mate/language/pt/userAccount.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/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#*=}
-
-if [ -x /usr/bin/setxkbmap ]; then
- echo "setxkbmap $(cat /.codecheck | grep XKBMAP= | cut -d '=' -f 2)" >> /home/${user#*=}/.bashrc
-fi
-
-if [ -x /usr/bin/gsettings ]; then
- sudo -u {user#*=} \
- if [ -d /usr/share/themes/Radiance-Purple ]; then
- gsettings set org.mate.interface gtk-theme 'Radiance-Purple'
- gsettings set org.mate.Marco.general theme 'Radiance-Purple'
- fi \
- if [ -d /usr/share/icons/RAVE-X-Dark-Purple ]; then
- gsettings set org.mate.interface icon-theme 'RAVE-X-Dark-Purple'
- fi \
- if [ -d /usr/share/icons/mate ]; then
- gsettings set org.mate.peripherals-mouse cursor-size '18'
- gsettings set org.mate.peripherals-mouse cursor-theme 'mate'
- fi \
- if [ -f /usr/share/backgrounds/parabola-laf/parabola-laf.png ]; then
- gsettings set org.mate.background picture-filename '/usr/share/backgrounds/parabola-laf/parabola-laf.png'
- fi
-fi
-
-exit