forked from huangzheng2016/CTFd-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsed.sh
20 lines (15 loc) · 962 Bytes
/
sed.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
UUID=$(cat /proc/sys/kernel/random/uuid)
#UUID=YOUR_TOKEN
sed -i "s/dynamic.test.com/$DYNAMIC_URL/g" /opt/CTFd/CTFd/plugins/ctfd_whale/utils/setup.py
sed -i "s/direct.test.com/$DIRECT_URL/g" /opt/CTFd/CTFd/plugins/ctfd_whale/utils/setup.py
sed -i "s/YOUR_TOKEN/$UUID/g" /opt/CTFd/CTFd/plugins/ctfd_whale/utils/setup.py
sed -i "s/dynamic.test.com/$DYNAMIC_URL/g" /opt/CTFd/CTFd/plugins/ctfd_owl/setup.py
sed -i "s/direct.test.com/$DIRECT_URL/g" /opt/CTFd/CTFd/plugins/ctfd_owl/setup.py
sed -i "s/YOUR_TOKEN/$UUID/g" /opt/CTFd/CTFd/plugins/ctfd_owl/setup.py
sed -i "s/ctfd.test.com/$CTFD_URL/g" /opt/CTFd/conf/nginx/http.conf
sed -i "s/dynamic.test.com/$DYNAMIC_URL/g" /opt/CTFd/conf/nginx/http.conf
sed -i "s/direct.test.com/$DIRECT_URL/g" /opt/CTFd/conf/nginx/http.conf
sed -i "s/dynamic.test.com/$DYNAMIC_URL/g" /opt/CTFd/frps/frps.ini
sed -i "s/YOUR_TOKEN/$UUID/g" /opt/CTFd/frps/frps.ini
sed -i "s/YOUR_TOKEN/$UUID/g" /opt/CTFd/frpc/frpc.ini