Skip to content
Snippets Groups Projects
Commit 5ca6f3db authored by Recolic Keghart's avatar Recolic Keghart
Browse files

recolic.org -> recolic.cc, change home http url

parent 1eb41137
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ tests = [ ...@@ -21,7 +21,7 @@ tests = [
('./do.bash rocket', 'Recolic Rocket Chat'), ('./do.bash rocket', 'Recolic Rocket Chat'),
('./do.bash dl', 'Download Site'), ('./do.bash dl', 'Download Site'),
('./do.bash shortlink', 'Short Link'), ('./do.bash shortlink', 'Short Link'),
('./do.bash org-dns', 'recolic.org DNS'), ('./do.bash cc-dns', 'recolic.cc DNS'),
('./do.bash home-http', 'Home HTTP, NFS, NAS, BaiduDownloader, etc'), ('./do.bash home-http', 'Home HTTP, NFS, NAS, BaiduDownloader, etc'),
] ]
......
#!/bin/bash #!/bin/bash
[[ $1 == '' ]] && echo -e 'Usage: '"$0 <operation> ...\n operation := rproxy | drive | v-tw | v-hk | frp-hk | ss-us1 | ss-us5 | ss-us6 | ovpn-tw | www | mail | tm | git | zhixiang | mc | push-httpdb-agent | ddns-wuhan | rocket | dl | shortlink | org-dns | home-http | all" && exit 1 [[ $1 == '' ]] && echo -e 'Usage: '"$0 <operation> ...\n operation := rproxy | drive | v-tw | v-hk | frp-hk | ss-us1 | ss-us5 | ss-us6 | ovpn-tw | www | mail | tm | git | zhixiang | mc | push-httpdb-agent | ddns-wuhan | rocket | dl | shortlink | cc-dns | home-http | all" && exit 1
[[ $(id -u) = 0 ]] && ping_fld="-f" [[ $(id -u) = 0 ]] && ping_fld="-f"
...@@ -146,8 +146,8 @@ function do_test () { ...@@ -146,8 +146,8 @@ function do_test () {
#ddns-us ) #ddns-us )
# test_tcp base.ddns2.recolic.net 22 | grep SSH && # test_tcp base.ddns2.recolic.net 22 | grep SSH &&
# test_tcp base.ddns2.recolic.net 80 && # test_tcp base.ddns2.recolic.net 80 &&
# test_tcp nohsts.ddns2.recolic.org 22 | grep SSH && # test_tcp nohsts.ddns2.recolic.cc 22 | grep SSH &&
# test_tcp nohsts.ddns2.recolic.org 80 || return $? # test_tcp nohsts.ddns2.recolic.cc 80 || return $?
# ;; # ;;
dl ) dl )
test_icmp dl.recolic.net && test_icmp dl.recolic.net &&
...@@ -162,13 +162,13 @@ function do_test () { ...@@ -162,13 +162,13 @@ function do_test () {
test_icmp rocket.recolic.net && test_icmp rocket.recolic.net &&
curl -s https://rocket.recolic.net:444/api/info | grep 'success":true' || return $? curl -s https://rocket.recolic.net:444/api/info | grep 'success":true' || return $?
;; ;;
org-dns ) cc-dns )
test_icmp www.recolic.org && test_icmp www.recolic.cc &&
curl -s https://recolic.org/ || return $? curl -s https://recolic.cc/ || return $?
;; ;;
home-http ) home-http )
# NO icmp required. # NO icmp required.
curl -s http://home.cnm.cool:81/ || return $? curl -s http://home.recolic-backend.xyz:81/ || return $?
;; ;;
esac esac
...@@ -201,7 +201,7 @@ if [[ "$1" = all ]]; then ...@@ -201,7 +201,7 @@ if [[ "$1" = all ]]; then
do_test_twice rocket && do_test_twice rocket &&
do_test_twice shortlink && do_test_twice shortlink &&
do_test_twice dl && do_test_twice dl &&
do_test_twice org-dns && do_test_twice cc-dns &&
do_test_twice home-http do_test_twice home-http
exit $? exit $?
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment