Update file provision.sh
This commit is contained in:
parent
7e152b0159
commit
f07445bdce
1 changed files with 3 additions and 3 deletions
|
@ -183,9 +183,9 @@ logg() {
|
||||||
### 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. You will either enter your password when needed or perform a non-privileged installation'
|
echo 'Press `CTRL+C` to bypass this prompt. You will either enter your password when needed or perform a non-privileged installation'
|
||||||
logg info 'Note: Non-privileged installations are not yet supported - pull requests welcome'
|
echo 'Note: Non-privileged installations are not yet supported - pull requests welcome'
|
||||||
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue