Update 2 files
- /home/dot_local/bin/executable_provision.tmpl - /local/provision.sh
This commit is contained in:
parent
86f0be60bf
commit
aef810a0d8
2 changed files with 8 additions and 14 deletions
|
@ -11,13 +11,10 @@
|
|||
{{ includeTemplate "universal/logg" }}
|
||||
|
||||
### Prompt for sudo password and (optionally) enable passwordless sudo
|
||||
sudo -n true || SUDO_EXIT_CODE=$?
|
||||
if [ -n "$SUDO_EXIT_CODE" ]; then
|
||||
echo 'Your user will temporarily be granted passwordless sudo for the duration of the script'
|
||||
echo 'Press `CTRL+C` to bypass this prompt to either enter your password when needed or perform a non-privileged installation'
|
||||
echo 'Note: Non-privileged installations are not yet supported'
|
||||
logg info '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'
|
||||
logg info 'Note: Non-privileged installations are not yet supported'
|
||||
echo "$(whoami) ALL=(ALL:ALL) NOPASSWD: ALL # TEMPORARY FOR INSTALL DOCTOR" | sudo tee -a /etc/sudoers
|
||||
fi
|
||||
|
||||
### Ensure ~/.local/share/megabyte-labs is a directory
|
||||
if [ ! -d "${XDG_DATA_DIR:-$HOME/.local/share}/megabyte-labs" ]; then
|
||||
|
|
|
@ -181,13 +181,10 @@ logg() {
|
|||
}
|
||||
|
||||
### Prompt for sudo password and (optionally) enable passwordless sudo
|
||||
sudo -n true || SUDO_EXIT_CODE=$?
|
||||
if [ -n "$SUDO_EXIT_CODE" ]; then
|
||||
echo 'Your user will temporarily be granted passwordless sudo for the duration of the script'
|
||||
echo 'Press `CTRL+C` to bypass this prompt. You will either enter your password when needed or perform a non-privileged installation'
|
||||
echo 'Note: Non-privileged installations are not yet supported - pull requests welcome'
|
||||
logg info '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'
|
||||
logg info 'Note: Non-privileged installations are not yet supported'
|
||||
echo "$(whoami) ALL=(ALL:ALL) NOPASSWD: ALL # TEMPORARY FOR INSTALL DOCTOR" | sudo tee -a /etc/sudoers
|
||||
fi
|
||||
|
||||
### Qubes dom0
|
||||
if command -v qubesctl > /dev/null; then
|
||||
|
|
Loading…
Reference in a new issue