Init
This commit is contained in:
15
init/01-sysUpdate.sh
Normal file
15
init/01-sysUpdate.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# chmod +x 01-sysUpdate.sh && ./01-sysUpdate.sh
|
||||
# curl -sS -O https://raw.githubusercontent.com/ghuang-top/vps/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
|
||||
|
||||
Reference in New Issue
Block a user