config/yadm/bootstrap: Add password-free reboot

This commit is contained in:
xerus2000 2020-10-14 14:17:02 +02:00
parent 07d59bacd8
commit 00ce7fd7df
1 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,10 @@ sudo sysctl --system
# Update sudoers configuration # Update sudoers configuration
echo "Defaults editor=/usr/bin/nvim" | sudo tee /etc/sudoers.d/editor echo "Defaults editor=/usr/bin/nvim" | sudo tee /etc/sudoers.d/editor
echo "Defaults timestamp_timeout=30" | sudo tee /etc/sudoers.d/timeout echo "Defaults timestamp_timeout=20" | sudo tee /etc/sudoers.d/timeout
# Password-free reboot
echo "$USER ALL = NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff" | sudo tee /etc/sudoers.d/shutdown
## Hardware ## Hardware
printf '\nHardware\n' printf '\nHardware\n'