A script that automates the process of setting up unattended security updates on Ubuntu 22.04+/Debian 12+ and newer versions. This script ensures your system stays secure by automatically installing important security updates.
- Checks if it's running with root privileges
- Verifies if unattended-upgrades is already set up
- Installs necessary packages
- Configures unattended-upgrades
- Sets up automatic upgrades
- Configures update intervals
- Tests the configuration
- Enables and starts the unattended-upgrades service
You can copy this line below run this script directly from a Root shell:
sudo bash -c "$(curl -fsSL https://github.com/ruhanirabin/unattended-setup-script-debian/raw/main/setup_auto_updates.sh)"
- This script will overwrite existing configuration files. If you have custom configurations, back them up before running this script.
- Running scripts directly from the internet can be a security risk. Always verify the source and content of the script before running it.
- After setting up automatic updates, monitor your system to ensure it's functioning as expected.
By using this script, you can quickly and easily set up automatic security updates on your Ubuntu 22.04+ or Debian 12 system, helping to keep it secure with minimal manual intervention.
-- New action for automating readme updates
-- Script cleanup - more instructions where needed. Versions will upgrade incrementally for each commit. Added some github hooks as well.
-- Removed typical updates and only kept security updates -- Changed the ascii art to match the script name.