Update file executable_provision.tmpl

This commit is contained in:
Brian Zalewski 2023-01-25 12:34:07 +00:00
parent f07445bdce
commit 86f0be60bf

View file

@ -13,9 +13,9 @@
### Prompt for sudo password and (optionally) enable passwordless sudo ### Prompt for sudo password and (optionally) enable passwordless sudo
sudo -n true || SUDO_EXIT_CODE=$? sudo -n true || SUDO_EXIT_CODE=$?
if [ -n "$SUDO_EXIT_CODE" ]; then if [ -n "$SUDO_EXIT_CODE" ]; then
logg info 'Your user will temporarily be granted passwordless sudo for the duration of the script' echo 'Your user will temporarily be granted passwordless sudo for the duration of the script'
logg info 'Press `CTRL+C` to bypass this prompt to either enter your password when needed or perform a non-privileged installation' echo 'Press `CTRL+C` to bypass this prompt to either enter your password when needed or perform a non-privileged installation'
logg info 'Note: Non-privileged installations are not yet supported' echo 'Note: Non-privileged installations are not yet supported'
echo "$(whoami) ALL=(ALL:ALL) NOPASSWD: ALL # TEMPORARY FOR INSTALL DOCTOR" | sudo tee -a /etc/sudoers echo "$(whoami) ALL=(ALL:ALL) NOPASSWD: ALL # TEMPORARY FOR INSTALL DOCTOR" | sudo tee -a /etc/sudoers
fi fi