fix last commit, undo pointless sed changes in b07be8b

for some reason in b07be8b i made the sudoers sed exprs match less specific patterns and said i "fixed them". the actual problem was some had two s commands which i didn't fix until f0bcb96. also reverted locale.gen's sed to avoid uncommenting en_US.UTF-8 twice.
This commit is contained in:
i-c-u-p 2022-04-28 11:05:11 +00:00
parent 1e4f7b6e80
commit f993194eba
No known key found for this signature in database
GPG Key ID: ABB80C12170FC0D1
2 changed files with 5 additions and 5 deletions

View File

@ -46,7 +46,7 @@ echo "
-------------------------------------------------------------------------
Setup Language to US and set locale
-------------------------------------------------------------------------"
sed -i '/en_US.UTF-8 UTF-8/s/^#//' /etc/locale.gen
sed -i 's/^#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
locale-gen
timedatectl --no-ask-password set-timezone ${TIMEZONE}
timedatectl --no-ask-password set-ntp 1

View File

@ -144,11 +144,11 @@ echo "
Cleaning
-------------------------------------------------------------------------"
# Remove no password sudo rights
sed -i 's/%wheel ALL=(ALL) NOPASSWD: ALL/# &/' /etc/sudoers
sed -i 's/%wheel ALL=(ALL:ALL) NOPASSWD: ALL/# &/' /etc/sudoers
sed -i 's/^%wheel ALL=(ALL) NOPASSWD: ALL/# &/' /etc/sudoers
sed -i 's/^%wheel ALL=(ALL:ALL) NOPASSWD: ALL/# &/' /etc/sudoers
# Add sudo rights
sed -i 's/^#%wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers
sed -i 's/^#%wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
sed -i 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers
sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
rm -r $HOME/ArchTitus /home/$USERNAME/ArchTitus