#!/bin/bash
# chmod +x 01-sysUpdate.sh && ./01-sysUpdate.sh
# curl -sS -O https://gitea.tohub.top/Share/vps/raw/branch/main/init/01-sysUpdate.sh && chmod +x 01-sysUpdate.sh && ./01-sysUpdate.sh

echo "系统更新"

if [ -f "/etc/debian_version" ]; then
    apt update -y && DEBIAN_FRONTEND=noninteractive apt full-upgrade -y
fi

# 1、VPS Initialization
apt update -y && apt upgrade -y  # 更新一下包
apt install -y wget curl sudo vim git ufw # Debian系统比较干净，安装常用的软件
sudo usermod -aG sudo root

