mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 11:30:55 +00:00
fix last commit
didnt actually fix the sudoers expression...
This commit is contained in:
parent
1375897e53
commit
540a503f28
1 changed files with 1 additions and 1 deletions
|
|
@ -424,7 +424,7 @@ echo "root:$rootpass" | arch-chroot /mnt chpasswd
|
|||
if [ -n "$username" ]; then
|
||||
print "Adding the user $username to the system with root privilege."
|
||||
arch-chroot /mnt useradd -m -G wheel -s /bin/bash "$username"
|
||||
sed -i '/^ #%wheel ALL=(ALL) ALL/s/^ #//' /mnt/etc/sudoers
|
||||
sed -i '/^# %wheel ALL=(ALL) ALL/s/^# //' /mnt/etc/sudoers
|
||||
print "Setting user password for $username."
|
||||
echo "$username:$userpass" | arch-chroot /mnt chpasswd
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue