更新 setup.sh
This commit is contained in:
7
setup.sh
7
setup.sh
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#运行命令: bash <(wget -qO- https://git.nvme.cc/adminroot/setup/raw/branch/main/setup.sh)
|
||||
ARCH=$(uname -m)
|
||||
echo "请选择要执行的脚本(可多选,用空格分隔):"
|
||||
echo "1. 开启BBR"
|
||||
echo "2. 设置Swap大小"
|
||||
@@ -10,7 +10,6 @@ echo "6. 安装公钥"
|
||||
echo "7. 安装caddy"
|
||||
echo "8. 安装conda"
|
||||
echo "9. 安装docker"
|
||||
echo "10. 安装ss-rust"
|
||||
read -p "输入你的选择: " choices
|
||||
|
||||
# 处理选择
|
||||
@@ -41,10 +40,8 @@ for choice in $choices; do
|
||||
apt update -y
|
||||
apt install -y htop cbm tree ufw curl wget lsof micro git git-lfs $app
|
||||
wget https://git.nvme.cc/adminroot/auto-update/raw/branch/main/app/zellij -O /usr/local/bin/zellij
|
||||
wget https://www.7-zip.org/a/7z2501-linux-x64.tar.xz -O 7z.tar.xz
|
||||
tar -xf 7z.tar.xz -C /usr/local/bin/ --transform 's/7zz$/7z/' "7zz"
|
||||
wget https://git.nvme.cc/adminroot/auto-update/raw/branch/main/app/7zz -O /usr/local/bin/7z
|
||||
chmod +x /usr/local/bin/7z /usr/local/bin/zellij
|
||||
rm 7z.tar.xz
|
||||
;;
|
||||
5)
|
||||
echo "配置防火墙"
|
||||
|
||||
Reference in New Issue
Block a user