Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- apt update
- apt -y -o DPkg::Options::="--force-confdef" -o DPkg::Options::="--force-confold" upgrade
- apt -y -o DPkg::Options::="--force-confdef" -o DPkg::Options::="--force-confold" dist-upgrade
- apt -y autoremove
- if [ -f /var/run/reboot-required ]; then
- echo "System needs to reboot after upgrading. See you later! :-)"
- echo "Reboot initiated... Goodbye!"
- reboot
- fi
Add Comment
Please, Sign In to add comment