29 lines
1.3 KiB
Bash
29 lines
1.3 KiB
Bash
#!/bin/bash
|
|
#wget -O- https://git.nps.crabapples.cn/crabapples/learn-spider/raw/branch/main/bin/auto_install.sh | bash
|
|
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
|
|
echo "下载启动脚本..."
|
|
wget -q --show-progress https://git.nps.crabapples.cn/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
|
|
echo "下载卸载脚本..."
|
|
wget -q --show-progress https://git.nps.crabapples.cn/crabapples/learn-spider/raw/branch/main/bin/uninstall.sh && chmod +x uninstall.sh
|
|
echo "下载完成"
|
|
echo "开始安装..."
|
|
|
|
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"
|
|
|
|
./install.sh $USER_COUNT $PUBLIC_DIR $GIT_NO_VNC $GIT_WEBSOCKIFY $GIT_PY_SPIDER
|
|
echo "安装完成"
|
|
|
|
|