Browse Source

gein.sh: Fix user creation

master
jcmdln 2 years ago
parent
commit
256c37a4ad
1 changed files with 6 additions and 7 deletions
  1. 6
    7
      gein.sh

+ 6
- 7
gein.sh View File

@@ -357,23 +357,22 @@ LAPTOP() {
# may skip these steps if desired.

POSTINSTALL() {
# echo "gein: Creating 'power' group"
# groupadd power
# poweroff reboot shutdown

read -ep "gein: Install laptop packages? [Y/N]: " SetupUser
if echo "$SetupUser" | grep -iq "^y"; then
$Emerge @gein-laptop
fi

# echo "gein: Creating 'power' group"
# groupadd power
# poweroff reboot shutdown

read -ep "gein: Setup a standard user? [Y/N]: " SetupUser
if echo "$SetupUser" | grep -iq "^y"; then
echo "gein: Creating user account" &&
read -ep "Username: " Username &&
read -ep "Password: " Password &&
useradd -m -G wheel,audio,video,power \
useradd -m -G wheel,audio,video \
-s /bin/bash "$Username" &&
echo "$Username":"$Password" | chpasswd
passwd $Username
fi

echo "gein: Installation complete."

Loading…
Cancel
Save