Skip to content

Commit 5daeea2

Browse files
太晚了,没有测试只是放个脚本上来而已
1 parent 60c659c commit 5daeea2

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

baidupcs.sh

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ install_BaiduPCS-Web() {
152152
fi
153153

154154

155-
mkdir -p /etc/BaiduPCS-Web/233boy/BaiduPCS-Web
156-
git clone https://github.com/233boy/BaiduPCS-Web /etc/BaiduPCS-Web/233boy/BaiduPCS-Web
155+
mkdir -p /etc/BaiduPCS-Web/shaoxia/BaiduPCS-Web
156+
git clone https://github.com/user1121114685/baidupcsweb.git /etc/BaiduPCS-Web/shaoxia/BaiduPCS-Web
157157
## 这里还需修改
158158

159-
if [[ ! -d /etc/BaiduPCS-Web/233boy/BaiduPCS-Web ]]; then
159+
if [[ ! -d /etc/BaiduPCS-Web/shaoxia/BaiduPCS-Web ]]; then
160160
echo
161161
echo -e "$red 哎呀呀...克隆脚本仓库出错了...$none"
162162
echo
@@ -216,8 +216,7 @@ update_BaiduPCS-Web() {
216216
fi
217217
}
218218
update_BaiduPCS-Web.sh() {
219-
local latest_version=$(curl -H 'Cache-Control: no-cache' -s -L "https://raw.githubusercontent.com/233boy/BaiduPCS-Web/master/BaiduPCS-Web.sh" | grep '_version' -m1 | cut -d\" -f2)
220-
## 这里还需修改
219+
local latest_version=$(curl -H 'Cache-Control: no-cache' -s -L "https://raw.githubusercontent.com/user1121114685/baidupcsweb/master/baidupcs.sh" | grep '_version' -m1 | cut -d\" -f2)
221220

222221
if [[ ! $latest_version ]]; then
223222
echo
@@ -238,9 +237,9 @@ update_BaiduPCS-Web.sh() {
238237
echo
239238
echo -e " $green 咦...发现新版本耶....正在拼命更新.......$none"
240239
echo
241-
cd /etc/BaiduPCS-Web/233boy/BaiduPCS-Web
240+
cd /etc/BaiduPCS-Web/shaoxia/BaiduPCS-Web
242241
git pull
243-
cp -f /etc/BaiduPCS-Web/233boy/BaiduPCS-Web/BaiduPCS-Go.sh $_BaiduPCS-Web_sh
242+
cp -f /etc/BaiduPCS-Web/shaoxia/BaiduPCS-Web/baidupcs.sh $_BaiduPCS-Web_sh
244243
chmod +x $_BaiduPCS-Web_sh
245244
echo
246245
echo -e "$green 更新成功啦...当前 BaiduPCS-Web 管理脚本 版本: ${cyan}$latest_version$none"
@@ -290,8 +289,6 @@ uninstall_BaiduPCS-Web() {
290289
if [[ $systemd ]]; then
291290
systemctl disable BaiduPCS-Web >/dev/null 2>&1
292291
rm -rf /lib/systemd/system/BaiduPCS-Web.service
293-
systemctl disable caddy >/dev/null 2>&1
294-
rm -rf /lib/systemd/system/caddy.service
295292
else
296293
update-rc.d -f BaiduPCS-Web remove >/dev/null 2>&1
297294
rm -rf /etc/init.d/BaiduPCS-Web
@@ -302,7 +299,7 @@ uninstall_BaiduPCS-Web() {
302299
echo
303300
echo "如果你觉得这个脚本有哪些地方不够好的话...请告诉我"
304301
echo
305-
echo "反馈问题: https://github.com/233boy/BaiduPCS-Web/issues"
302+
echo "反馈问题: https://github.com/user1121114685/baidupcsweb/issues/new"
306303
echo
307304

308305
}
@@ -362,15 +359,10 @@ menu() {
362359
echo
363360
echo -e "## BaiduPCS-Web 版本: $cyan$BaiduPCS-Web_ver$none / BaiduPCS-Web 状态: $BaiduPCS-Web_status ##"
364361
echo
365-
echo "帮助说明: https://BaiduPCS-Web66.com/post/1/"
362+
echo "反馈问题: https://github.com/user1121114685/baidupcsweb/issues/new"
366363
echo
367-
echo "反馈问题: https://github.com/233boy/BaiduPCS-Web/issues"
364+
echo "捐赠脚本作者: 没有开通捐赠通道"
368365
echo
369-
echo "TG 群组: https://t.me/blog233"
370-
echo
371-
echo "捐赠脚本作者: https://BaiduPCS-Web66.com/donate/"
372-
echo
373-
echo "捐助 BaiduPCS-Web: https://www.BaiduPCS-Web.com/chapter_00/02_donate.html"
374366
echo
375367
echo -e "$yellow 1. $none查看 BaiduPCS-Web 配置"
376368
echo

0 commit comments

Comments
 (0)