Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Ensure the script is run with root privileges
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit 1
fi
# Update and upgrade system
apt update && apt upgrade -y