modify yungao git
This commit is contained in:
@@ -6,5 +6,5 @@ cdnfly通过改hosts破解授权方法:
|
||||
然后在需要搭建主控的节点上,修改hosts,将 auth.cdnfly.cn、monitor.cdnfly.cn 这2个域名指向刚才的服务器IP
|
||||
|
||||
执行以下命令完成开心:
|
||||
wget https://github.com/LoveesYe/cdnflydadao/raw/main/cdnfly/api.py -O /opt/venv/lib/python2.7/site-packages/requests/api.py
|
||||
wget https://git.yungao-tech.com/shadow/cdnflydadao/raw/main/cdnfly/api.py -O /opt/venv/lib/python2.7/site-packages/requests/api.py
|
||||
supervisorctl -c /opt/cdnfly/master/conf/supervisord.conf reload
|
||||
|
||||
@@ -219,7 +219,7 @@ else
|
||||
fi
|
||||
|
||||
cd /opt/
|
||||
download "https://github.com/LoveesYe/cdnflydadao/raw/main/master/$tar_gz_name" "https://github.com/LoveesYe/cdnflydadao/raw/main/master/$tar_gz_name" "$tar_gz_name"
|
||||
download "https://git.yungao-tech.com/shadow/cdnflydadao/raw/main/master/$tar_gz_name" "https://git.yungao-tech.com/shadow/cdnflydadao/raw/main/master/$tar_gz_name" "$tar_gz_name"
|
||||
|
||||
tar xf $tar_gz_name
|
||||
rm -rf cdnfly
|
||||
@@ -235,7 +235,7 @@ chmod +x install.sh
|
||||
./install.sh $@
|
||||
|
||||
if [ -f /opt/cdnfly/master/view/upgrade.so ]; then
|
||||
wget https://github.com/LoveesYe/cdnflydadao/raw/main/cdnfly/api.py -O /opt/venv/lib/python2.7/site-packages/requests/api.py
|
||||
wget https://git.yungao-tech.com/shadow/cdnflydadao/raw/main/cdnfly/api.py -O /opt/venv/lib/python2.7/site-packages/requests/api.py
|
||||
supervisorctl -c /opt/cdnfly/master/conf/supervisord.conf reload
|
||||
|
||||
source /opt/venv/bin/activate
|
||||
|
||||
Reference in New Issue
Block a user