mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
24w17b
This commit is contained in:
parent
ac859c39a6
commit
2187514da7
5 changed files with 28 additions and 7 deletions
|
|
@ -63,7 +63,12 @@ wget -O /root/data/ghproxy/ghproxy https://github.com/WJQSERVER-STUDIO/ghproxy/r
|
|||
chmod +x /root/data/ghproxy/ghproxy
|
||||
|
||||
# 下载配置文件
|
||||
wget -O /root/data/ghproxy/config/config.toml https://raw.githubusercontent.com/WJQSERVER-STUDIO/ghproxy/main/deploy/config.toml
|
||||
if [ -f /root/data/ghproxy/config/config.toml ]; then
|
||||
echo "配置文件已存在, 跳过下载"
|
||||
else
|
||||
wget -O /root/data/ghproxy/config/config.toml https://raw.githubusercontent.com/WJQSERVER-STUDIO/ghproxy/main/config.toml
|
||||
fi
|
||||
|
||||
# 替换 port = 8080
|
||||
sed -i "s/port = 8080/port = $PORT/g" /root/data/ghproxy/config/config.toml
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue