fix last commit, undo pointless sed changes in b07be8b
for some reason inb07be8bi 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 untilf0bcb96. also reverted locale.gen's sed to avoid uncommenting en_US.UTF-8 twice.
This commit is contained in:
parent
1e4f7b6e80
commit
f993194eba
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue