mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-22 01:21:34 -05:00
Easier to read regex
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
edb0e04404
commit
90dff901cc
@ -474,7 +474,7 @@ EOF
|
|||||||
[ -n "$username" ] && echo "Setting user password for ${username}." && echo -e "${user_password}\n${user_password}" | arch-chroot /mnt passwd "$username" &>/dev/null
|
[ -n "$username" ] && echo "Setting user password for ${username}." && echo -e "${user_password}\n${user_password}" | arch-chroot /mnt passwd "$username" &>/dev/null
|
||||||
|
|
||||||
## Give wheel user sudo access.
|
## Give wheel user sudo access.
|
||||||
sed -i 's/# \(%wheel ALL=(ALL\(:ALL\|\)) ALL\)/\1/g' /mnt/etc/sudoers
|
sed -i 's/# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/g' /mnt/etc/sudoers
|
||||||
|
|
||||||
## Enable services
|
## Enable services
|
||||||
systemctl enable apparmor --root=/mnt
|
systemctl enable apparmor --root=/mnt
|
||||||
|
Loading…
Reference in New Issue
Block a user