Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vps-auto

Ubuntu VPS 初始化脚本 vps_auto_work_cc.sh公开分发仓库

开发在私有仓 MyTools 进行;本仓库仅用于 VPS 拉取安装与自更新。

首次安装

curl -fsSL https://raw.githubusercontent.com/alpha302/vps-auto/main/install.sh | sudo bash

脚本将安装到 /root/.1/vps_auto_work_cc.sh/root/.1/install-tools.sh(供 -mcp-apt 使用)。

检查 / 更新

sudo bash /root/.1/vps_auto_work_cc.sh -update-check
sudo bash /root/.1/vps_auto_work_cc.sh -update

-update 会下载新版本、执行 bash -n 与 SHA256 校验,并备份旧文件(*.bak.YYYYMMDDHHMMSS)。

版本信息

当前版本见 version.json

可选配置

创建 /etc/vps_auto/update.conf 可覆盖默认地址:

MANIFEST_URL="https://raw.githubusercontent.com/alpha302/vps-auto/main/version.json"
INSTALL_PATH="/root/.1/vps_auto_work_cc.sh"

About

初始化服务器自动更新脚本

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages