mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
fix sudoers and pacman.conf sed expressions
the paralleldownloads sed in 2fb11db changes the value without actually uncommenting it, and the change the the "Color" sed in adds ILoveCandy without actually uncommenting Color. also made the color regex match "^#Color$" instead of "#Color" to make it more specific
This commit is contained in:
parent
d9e5976ece
commit
1375897e53
1 changed files with 2 additions and 2 deletions
|
|
@ -424,7 +424,7 @@ echo "root:$rootpass" | arch-chroot /mnt chpasswd
|
||||||
if [ -n "$username" ]; then
|
if [ -n "$username" ]; then
|
||||||
print "Adding the user $username to the system with root privilege."
|
print "Adding the user $username to the system with root privilege."
|
||||||
arch-chroot /mnt useradd -m -G wheel -s /bin/bash "$username"
|
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."
|
print "Setting user password for $username."
|
||||||
echo "$username:$userpass" | arch-chroot /mnt chpasswd
|
echo "$username:$userpass" | arch-chroot /mnt chpasswd
|
||||||
fi
|
fi
|
||||||
|
|
@ -456,7 +456,7 @@ EOF
|
||||||
|
|
||||||
# Pacman eye-candy features.
|
# Pacman eye-candy features.
|
||||||
print "Enabling colours, animations, and parallel in pacman."
|
print "Enabling colours, animations, and parallel in pacman."
|
||||||
sed -i '/^#ParallelDownloads/s/=.*/= 10/;/#Color/a ILoveCandy' /mnt/etc/pacman.conf
|
sed -i 's/#Color/Color\nILoveCandy/;s/^#ParallelDownloads.*/ParallelDownloads = 10/' /mnt/etc/pacman.conf
|
||||||
|
|
||||||
# Enabling various services.
|
# Enabling various services.
|
||||||
print "Enabling Reflector, automatic snapshots, BTRFS scrubbing and systemd-oomd."
|
print "Enabling Reflector, automatic snapshots, BTRFS scrubbing and systemd-oomd."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue