From 559c6cb5b8a76d407c749caf349cea1a16a2bf76 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Fri, 2 Dec 2022 18:44:48 +0000 Subject: [PATCH] Update .local/share/chezmoi/home/dot_local/bin/executable_install-program --- .../share/chezmoi/home/dot_local/bin/executable_install-program | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/share/chezmoi/home/dot_local/bin/executable_install-program b/.local/share/chezmoi/home/dot_local/bin/executable_install-program index 768585da..03409651 100644 --- a/.local/share/chezmoi/home/dot_local/bin/executable_install-program +++ b/.local/share/chezmoi/home/dot_local/bin/executable_install-program @@ -179,7 +179,7 @@ async function afterInstall(packageManager) { if (packageManager === 'appimage') { } else if (packageManager === 'ansible') { await $`logg info 'Ensuring temporary passwordless sudo privileges used by Ansible are removed'` - await $`sudo sed -i '/# TEMPORARY FOR ANSIBLE INSTALL/d' /etc/sudoers` + await $`echo "$(whoami) ALL=(ALL:ALL) NOPASSWD: ALL # TEMPORARY FOR ANSIBLE INSTALL" | sudo tee -a /etc/sudoers` } else if (packageManager === 'apk') { } else if (packageManager === 'apt') { } else if (packageManager === 'basher') {