This repository contains two Bash scripts for managing Debian-based Linux systems:
setup.sh: Configures hostname, updates the system, and sends failure alerts.update.sh: Automates system upgrades with logging and interactive/non-interactive modes.
This script automates:
- Hostname configuration
- System updates
- Cleanup of unused packages
- Sending an alert email if the update fails
- β Root privilege check
- β User confirmation prompt
- β Silent system update
- β Cleanup of unused packages
- β Email alert on failure
- Debian-based Linux system
swaksinstalled- SMTP credentials in
/root/.smtp_password
sudo chmod +x setup.sh update.sh
sudo ./setup.sh
sudo ./update.sh