diff --git a/server/app/config/shell.json b/server/app/config/shell.json index d50c793..c59125c 100644 --- a/server/app/config/shell.json +++ b/server/app/config/shell.json @@ -1,22 +1,27 @@ [ { - "name": "docker安装(外网环境)", + "name": "[内置]查看系统信息", + "command": "curl https://git.221022.xyz/https://raw.githubusercontent.com/chaos-zhu/easynode/refs/heads/main/server/app/shell/system-info.sh -sSf | sh", + "description": "查看系统信息(来源: AI生成)" + }, + { + "name": "[内置]swap配置", + "command": "curl -fsSL https://git.221022.xyz/https://raw.githubusercontent.com/chaos-zhu/easynode/refs/heads/main/server/app/shell/swap.sh -o swap.sh && bash swap.sh", + "description": "swap大小配置(来源: NS)" + }, + { + "name": "[内置]安装docker(官方)", "command": "curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh", - "description": "docker安装(原脚本作者: https://github.com/docker/docker-install)" + "description": "docker安装(来源: https://github.com/docker/docker-install)" }, { - "name": "docker-compose安装(外网环境)", - "command": "curl -L https://github.com/docker/compose/releases/download/v2.29.3/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose && docker-compose --version", - "description": "docker-compose安装(原脚本作者: https://github.com/docker/docker-install)" + "name": "[内置]安装docker(阿里云加速)", + "command": "curl https://git.221022.xyz/https://raw.githubusercontent.com/chaos-zhu/easynode/refs/heads/main/server/app/shell/docker-install-cn.sh -sSf | bash", + "description": "docker安装(来源: https://mirrors.aliyun.com/docker-ce/linux)" }, { - "name": "生成ssh密钥对", - "command": "ssh-keygen -t rsa -b 2048", - "description": "生成ssh密钥对" - }, - { - "name": "vps回程测试", - "command": "curl https://git.221022.xyz/https://raw.githubusercontent.com/chaos-zhu/backtrace/main/install.sh -sSf | sh", - "description": "vps回程测试(原脚本作者: https://github.com/zhanghanyun)" + "name": "[内置]重装系统", + "command": "tmp_script=$(mktemp /tmp/easynode-reinstall-os-XXXXXX.sh) && curl -fsSL https://git.221022.xyz/https://raw.githubusercontent.com/chaos-zhu/easynode/refs/heads/main/server/app/shell/reinstall-os.sh -o \"$tmp_script\" && chmod +x \"$tmp_script\" && bash \"$tmp_script\"; script_status=$?; rm -f \"$tmp_script\"; unset tmp_script; [ \"$script_status\" -eq 0 ]", + "description": "重装系统(来源: https://cnb.cool/bin456789/reinstall)" } ] \ No newline at end of file