summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2022-01-26 08:30:31 -0600
committerzachir <zachir@librem.one>2022-01-26 08:30:31 -0600
commit4ebbde4e268dd6f6cf25f9b14b03962aa0c82555 (patch)
treee34bc9a3c17737619b986783ca9b40229f16561b
parent16520f4623868784a47375f6eb2e43a53f25ec71 (diff)
add user to wheel, whether or not they existed first
-rw-r--r--zirless.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/zirless.sh b/zirless.sh
index b6451d6..07586b2 100644
--- a/zirless.sh
+++ b/zirless.sh
@@ -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