Skip to content

LtWinters9/ks-srv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🛠️ System Maintenance Scripts

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.

📁 setup.sh – System Update & Hostname Configuration

📄 Description

This script automates:

  • Hostname configuration
  • System updates
  • Cleanup of unused packages
  • Sending an alert email if the update fails

✨ Features

  • ✅ Root privilege check
  • ✅ User confirmation prompt
  • ✅ Silent system update
  • ✅ Cleanup of unused packages
  • ✅ Email alert on failure

🧰 Requirements

  • Debian-based Linux system
  • swaks installed
  • SMTP credentials in /root/.smtp_password

🚀 Usage

sudo chmod +x setup.sh update.sh
sudo ./setup.sh
sudo ./update.sh

About

Simple script to get your server up and running with SMTP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages