Fix sudoers bug (ALL syntax changed)
This commit is contained in:
parent
91da8282d8
commit
8f3a6d3ad6
|
@ -248,7 +248,7 @@ installPackage() {
|
||||||
checkForParu() {
|
checkForParu() {
|
||||||
commOutput=$(runInChroot "command -v paru > /dev/null 2>&1 || echo 1")
|
commOutput=$(runInChroot "command -v paru > /dev/null 2>&1 || echo 1")
|
||||||
if [ "$commOutput" = "1" ]; then
|
if [ "$commOutput" = "1" ]; then
|
||||||
runInChroot "sed -i 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers"
|
runInChroot "sed -i 's/# %wheel ALL=(ALL:ALL) NOPASSWD: ALL/%wheel ALL=(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers"
|
||||||
checkSudoers
|
checkSudoers
|
||||||
printWaitBox
|
printWaitBox
|
||||||
runInChroot "cd /tmp; sudo -u $username git clone https://aur.archlinux.org/paru-bin.git; cd paru-bin; sudo -u $username makepkg -si --noconfirm" 2>&1 | debug
|
runInChroot "cd /tmp; sudo -u $username git clone https://aur.archlinux.org/paru-bin.git; cd paru-bin; sudo -u $username makepkg -si --noconfirm" 2>&1 | debug
|
||||||
|
@ -452,7 +452,7 @@ userSetUp() {
|
||||||
exitIfCancel "You must enter an username."
|
exitIfCancel "You must enter an username."
|
||||||
askForPassword "${username}" "userSetUp"
|
askForPassword "${username}" "userSetUp"
|
||||||
runInChroot "useradd -m ${username};echo \"${username}:${password}\" | chpasswd; usermod -aG wheel ${username}"
|
runInChroot "useradd -m ${username};echo \"${username}:${password}\" | chpasswd; usermod -aG wheel ${username}"
|
||||||
runInChroot "sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers"
|
runInChroot "sed -i 's/# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers"
|
||||||
checkSudoers
|
checkSudoers
|
||||||
unset password
|
unset password
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue