Files
vps/init/01-sysUpdate.sh

16 lines
527 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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