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