updated stuff
This commit is contained in:
@@ -28,8 +28,9 @@ print_logo
|
||||
cd ~
|
||||
sudo -v
|
||||
|
||||
# Extend sudo timeout for the duration of the install, clean up on exit
|
||||
echo "Defaults timestamp_timeout=120" | sudo tee /etc/sudoers.d/99-hampack-install > /dev/null
|
||||
# Grant passwordless sudo for the duration of the install, revoke on exit
|
||||
echo "$USER ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/99-hampack-install > /dev/null
|
||||
sudo chmod 440 /etc/sudoers.d/99-hampack-install
|
||||
trap "sudo rm -f /etc/sudoers.d/99-hampack-install" EXIT
|
||||
|
||||
if ! command -v git &> /dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user