pref: cdn改为cdn.staticaly.com

This commit is contained in:
shanmite 2021-06-05 18:03:46 +08:00
parent ac95ff86b6
commit 13594af2c7
2 changed files with 18 additions and 7 deletions

View File

@ -126,7 +126,7 @@ npm i && npm run clear
1.初始化
```bash
curl -fsSL https://cdn.jsdelivr.net/gh/shanmite/LotteryAutoScript@main/script/docker/init.sh | sh
curl -fsSL https://cdn.staticaly.com/gh/shanmite/LotteryAutoScript/main/script/docker/init.sh | sh
```
进入`lottery`文件夹
@ -147,6 +147,15 @@ cd lottery
使用与初始化相同的命令
3.卸载
进入lottery上一级目录
```bash
docker image rm shanmite/lottery_auto_docker
rm -rf lottery/
```
----------------------------------------
## 防重复转发

View File

@ -8,6 +8,8 @@ DYID_FOLDER=lib
ENV_FILE=env.js
# 自定义设置文件
CONFIG_FILE=my_config.json
# docker仓库
DOCKER_REPO=shanmite/lottery_auto_docker
echo " _ _ _ _____ _ _ ";
echo " | | | | | | / ____| (_) | | ";
@ -34,7 +36,7 @@ fi
if [ ! -f "$ENV_FILE" ]; then
echo "create $ENV_FILE"
curl -fsSL https://cdn.jsdelivr.net/gh/shanmite/LotteryAutoScript@main/env.example.js -o $ENV_FILE
curl -fsSL https://cdn.staticaly.com/gh/shanmite/LotteryAutoScript/main/env.example.js -o $ENV_FILE
else
echo "$ENV_FILE exists"
fi
@ -46,8 +48,8 @@ else
echo "$CONFIG_FILE exists"
fi
echo "docker pull shanmite/lottery_auto_docker"
docker -v && docker pull shanmite/lottery_auto_docker
echo "docker pull $DOCKER_REPO"
docker -v && docker pull $DOCKER_REPO
echo "create start.sh"
echo -e "#!/bin/bash\n\
@ -55,7 +57,7 @@ docker run \
-v $PWD/env.js:/lottery/env.js \
-v $PWD/my_config.json:/lottery/my_config.json \
-v $PWD/lib/:/lottery/lib/ \
shanmite/lottery_auto_docker \
$DOCKER_REPO \
start" \
> start.sh
@ -65,7 +67,7 @@ docker run \
-v $PWD/env.js:/lottery/env.js \
-v $PWD/my_config.json:/lottery/my_config.json \
-v $PWD/lib/:/lottery/lib/ \
shanmite/lottery_auto_docker \
$DOCKER_REPO \
check" \
> check.sh
@ -75,6 +77,6 @@ docker run \
-v $PWD/env.js:/lottery/env.js \
-v $PWD/my_config.json:/lottery/my_config.json \
-v $PWD/lib/:/lottery/lib/ \
shanmite/lottery_auto_docker \
$DOCKER_REPO \
clear" \
> clear.sh