diff options
author | zachir <zachir@librem.one> | 2022-01-26 08:30:31 -0600 |
---|---|---|
committer | zachir <zachir@librem.one> | 2022-01-26 08:30:31 -0600 |
commit | 4ebbde4e268dd6f6cf25f9b14b03962aa0c82555 (patch) | |
tree | e34bc9a3c17737619b986783ca9b40229f16561b | |
parent | 16520f4623868784a47375f6eb2e43a53f25ec71 (diff) |
add user to wheel, whether or not they existed first
-rw-r--r-- | zirless.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -58,7 +58,7 @@ preinstallmsg() { \ adduserandpass() { \ # Adds user `$name` with password $pass1. dialog --infobox "Adding user \"$name\"..." 4 50 - useradd -m -s /bin/zsh "$name" >/dev/null 2>&1 || + useradd -m -s /bin/zsh "$name" >/dev/null 2>&1 usermod -a -G wheel "$name" && mkdir -p /home/"$name" && chown "$name:$name" /home/"$name" repodir="/home/$name/.local/src"; mkdir -p "$repodir"; chown -R "$name:$name" "$(dirname "$repodir")" echo "$name:$pass1" | chpasswd |