Remove sudo password prompt
This commit is contained in:
parent
de0add2300
commit
6d170965d3
|
@ -30,7 +30,7 @@ updateSystemClock() {
|
|||
|
||||
exitIfCancel() {
|
||||
if [ $? -eq 1 ]; then
|
||||
whiptail --msgbox "${1} Therefore, the installation process will stop, but you can continue where you left off by running:\n\nsh CocoASIAS" 0 0
|
||||
whiptail --msgbox "${1} Therefore, the installation process will stop, but you can continue where you left off by running:\n\nsh CocoASAIS" 0 0
|
||||
echo "${2}" > CocoASAIS.log
|
||||
exit 1
|
||||
fi
|
||||
|
@ -121,7 +121,11 @@ getThePackages() {
|
|||
fi
|
||||
commOutput=$(command -v paru &> /dev/null)
|
||||
if [ $? -eq 1 ] && [ ! -z $username ]; then
|
||||
runInChroot "su -l $username; cd /tmp; git clone https://aur.archlinux.org/paru.git; cd paru; makepkg -si --noconfirm; cd ..; rm -rf paru"
|
||||
# runInChroot "sed -i 's/%wheel ALL=(ALL) ALL/# %wheel ALL=(ALL) ALL/' -e 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL' /etc/sudoers"
|
||||
runInChroot "sed -i 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL' /etc/sudoers"
|
||||
runInChroot "cd /tmp; sudo -u $username git clone https://aur.archlinux.org/paru.git; cd paru; sudo -u $username makepkg -si --noconfirm; cd ..; rm -rf paru"
|
||||
runInChroot "sed -i 's/%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL' /etc/sudoers"
|
||||
# runInChroot "sed -i 's/%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL' -e 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers"
|
||||
fi
|
||||
local IFS=,
|
||||
while read -r NAME IMPORTANT AUR; do
|
||||
|
|
Loading…
Reference in New Issue