Install sudo!

This commit is contained in:
Daniel Flanagan 2020-11-07 22:33:15 -06:00
parent 89d316a57a
commit e225f5e11a
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
2 changed files with 5 additions and 0 deletions

View File

@ -124,6 +124,10 @@ echo "and other machines before proceeding."
echo echo
echo "Don't forget to setup GPG keys by importing from an existing machine" echo "Don't forget to setup GPG keys by importing from an existing machine"
echo "or adding new child keys!" echo "or adding new child keys!"
if test $is_arch_linux -eq 1; then
echo
echo 'You will need to set a password for your new user.'
fi
echo echo
echo "The simplest method for doing this is to run the following:" echo "The simplest method for doing this is to run the following:"
echo ' scp -r "$TARGET_MACHINE:~/.gnupg" "$HOME/.gnupg' echo ' scp -r "$TARGET_MACHINE:~/.gnupg" "$HOME/.gnupg'

View File

@ -6,6 +6,7 @@ ud="/home/$u"
# user exists - we will assume setup has already run # user exists - we will assume setup has already run
if getent passwd "$u"; then exit 0; fi if getent passwd "$u"; then exit 0; fi
pacman -S --needed sudo
groupadd admin 2>/dev/null groupadd admin 2>/dev/null
mkdir --parents "$ud/.home" "$ud/dl" mkdir --parents "$ud/.home" "$ud/dl"
useradd --home-dir "$ud/.home" \ useradd --home-dir "$ud/.home" \