updated stuff

This commit is contained in:
David Young
2026-04-10 11:00:39 -06:00
parent 70c73005ee
commit 3b40f0ccc6
2 changed files with 4 additions and 3 deletions

View File

@@ -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