update start.sh
This commit is contained in:
parent
88fc257abd
commit
abe20f917b
|
|
@ -1,16 +1,18 @@
|
|||
#!/bin/bash
|
||||
#wget -O- -q --show-progress https://git.nps.crabapples.cn/crabapples/learn-spider/raw/branch/main/bin/auto_install.sh | bash
|
||||
|
||||
GIT_DOMAIN=https://git.nps.crabapples.cn
|
||||
echo "清理旧脚本..."
|
||||
rm -rf ./install.sh ./start.sh ./update.sh ./uninstall.sh
|
||||
echo "开始下载..."
|
||||
echo "下载安装脚本..."
|
||||
wget -q --show-progress https://git.nps.crabapples.cn/crabapples/learn-spider/raw/branch/main/bin/install.sh && chmod +x install.sh
|
||||
wget -q --show-progress $GIT_DOMAIN/crabapples/learn-spider/raw/branch/main/bin/install.sh && chmod +x install.sh
|
||||
echo "下载启动脚本..."
|
||||
wget -q --show-progress https://git.nps.crabapples.cn/crabapples/learn-spider/raw/branch/main/bin/start.sh && chmod +x start.sh
|
||||
wget -q --show-progress $GIT_DOMAIN/crabapples/learn-spider/raw/branch/main/bin/start.sh && chmod +x start.sh
|
||||
echo "下载更新脚本..."
|
||||
wget -q --show-progress https://git.nps.crabapples.cn/crabapples/learn-spider/raw/branch/main/bin/update.sh && chmod +x update.sh
|
||||
wget -q --show-progress $GIT_DOMAIN/crabapples/learn-spider/raw/branch/main/bin/update.sh && chmod +x update.sh
|
||||
echo "下载卸载脚本..."
|
||||
wget -q --show-progress https://git.nps.crabapples.cn/crabapples/learn-spider/raw/branch/main/bin/uninstall.sh && chmod +x uninstall.sh
|
||||
wget -q --show-progress $GIT_DOMAIN/crabapples/learn-spider/raw/branch/main/bin/uninstall.sh && chmod +x uninstall.sh
|
||||
echo "下载完成"
|
||||
echo "开始安装..."
|
||||
|
||||
|
|
@ -18,9 +20,9 @@ USER_COUNT=10
|
|||
# 公共的工作目录
|
||||
PUBLIC_DIR="/shared"
|
||||
# git仓库加速地址
|
||||
GIT_NO_VNC="https://git.nps.crabapples.cn/crabapples/noVNC.git"
|
||||
GIT_WEBSOCKIFY="https://git.nps.crabapples.cn/crabapples/websockify.git"
|
||||
GIT_PY_SPIDER="https://git.nps.crabapples.cn/crabapples/learn-spider.git"
|
||||
GIT_NO_VNC="$GIT_DOMAIN/crabapples/noVNC.git"
|
||||
GIT_WEBSOCKIFY="$GIT_DOMAIN/crabapples/websockify.git"
|
||||
GIT_PY_SPIDER="$GIT_DOMAIN/crabapples/learn-spider.git"
|
||||
|
||||
./install.sh $USER_COUNT $PUBLIC_DIR $GIT_NO_VNC $GIT_WEBSOCKIFY $GIT_PY_SPIDER
|
||||
echo "安装完成"
|
||||
|
|
|
|||
Loading…
Reference in New Issue