snail007 1 年之前
父节点
当前提交
f3a2ab1ebd
共有 6 个文件被更改,包括 23 次插入16 次删除
  1. 5 5
      docs/sitemap.xml
  2. 2 2
      docs/tags/cdn/index.html
  3. 2 2
      docs/tags/cdn/index.xml
  4. 1 1
      docs/tags/index.xml
  5. 6 3
      install_auto.sh
  6. 7 3
      install_auto_commercial.sh

+ 5 - 5
docs/sitemap.xml

@@ -18,31 +18,31 @@
   </url>
   
   <url>
-    <loc>https://snail007.goproxyauth.com/goproxy/tags/cdn/</loc>
+    <loc>https://snail007.goproxyauth.com/goproxy/categories/</loc>
     <lastmod>2019-07-05T08:20:48+08:00</lastmod>
     <priority>0</priority>
   </url>
   
   <url>
-    <loc>https://snail007.goproxyauth.com/goproxy/categories/</loc>
+    <loc>https://snail007.goproxyauth.com/goproxy/</loc>
     <lastmod>2019-07-05T08:20:48+08:00</lastmod>
     <priority>0</priority>
   </url>
   
   <url>
-    <loc>https://snail007.goproxyauth.com/goproxy/</loc>
+    <loc>https://snail007.goproxyauth.com/goproxy/posts/</loc>
     <lastmod>2019-07-05T08:20:48+08:00</lastmod>
     <priority>0</priority>
   </url>
   
   <url>
-    <loc>https://snail007.goproxyauth.com/goproxy/posts/</loc>
+    <loc>https://snail007.goproxyauth.com/goproxy/tags/</loc>
     <lastmod>2019-07-05T08:20:48+08:00</lastmod>
     <priority>0</priority>
   </url>
   
   <url>
-    <loc>https://snail007.goproxyauth.com/goproxy/tags/</loc>
+    <loc>https://snail007.goproxyauth.com/goproxy/tags/cdn/</loc>
     <lastmod>2019-07-05T08:20:48+08:00</lastmod>
     <priority>0</priority>
   </url>

+ 2 - 2
docs/tags/cdn/index.html

@@ -14,7 +14,7 @@
     <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
     <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
     <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_dark.min.css">
-    <title>CDN - GOPROXY IN ACTION</title>
+    <title>cdn - GOPROXY IN ACTION</title>
     
     <link href="https://snail007.goproxyauth.com/goproxy/css/styles.css" rel="stylesheet">
     
@@ -77,7 +77,7 @@
 
     
     <header class="page-header">
-      <h1>CDN</h1>
+      <h1>cdn</h1>
     </header>
     
 

+ 2 - 2
docs/tags/cdn/index.xml

@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
 <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
   <channel>
-    <title>CDN on GOPROXY IN ACTION</title>
+    <title>cdn on GOPROXY IN ACTION</title>
     <link>https://snail007.goproxyauth.com/goproxy/tags/cdn/</link>
-    <description>Recent content in CDN on GOPROXY IN ACTION</description>
+    <description>Recent content in cdn on GOPROXY IN ACTION</description>
     <generator>Hugo -- gohugo.io</generator>
     <language>zh-CN</language>
     <lastBuildDate>Fri, 05 Jul 2019 08:20:48 +0800</lastBuildDate>

+ 1 - 1
docs/tags/index.xml

@@ -12,7 +12,7 @@
     
     
     <item>
-      <title>CDN</title>
+      <title>cdn</title>
       <link>https://snail007.goproxyauth.com/goproxy/tags/cdn/</link>
       <pubDate>Fri, 05 Jul 2019 08:20:48 +0800</pubDate>
       

+ 6 - 3
install_auto.sh

@@ -1,4 +1,7 @@
 #!/bin/bash
+if [ "$1" == "cn" ]; then
+  MIRROR="https://mirrors.goproxyauth.com/"
+fi
 F="proxy-linux-amd64.tar.gz"
 set -e
 if [ -e /tmp/proxy ]; then
@@ -8,9 +11,9 @@ mkdir /tmp/proxy
 cd /tmp/proxy
 
 echo -e "\n>>> downloading ... $F\n"
-manual="https://snail007.host900.com/goproxy/manual/zh/"
-LAST_VERSION=$(curl --silent "https://mirrors.host900.com/https://api.github.com/repos/snail007/goproxy/releases/latest" | grep -Po '"tag_name":"\K.*?(?=")')
-wget  -t 1 "https://mirrors.host900.com/https://github.com/snail007/goproxy/releases/download/${LAST_VERSION}/$F"
+manual="https://snail007.goproxyauth.com/goproxy/manual/zh/"
+LAST_VERSION=$(curl --silent "${MIRROR}https://api.github.com/repos/snail007/goproxy/releases/latest" | grep -Po '"tag_name": *"\K.*?(?=")')
+wget  -t 1 "${MIRROR}https://github.com/snail007/goproxy/releases/download/${LAST_VERSION}/$F"
 
 echo -e ">>> installing ... \n"
 # #install proxy

+ 7 - 3
install_auto_commercial.sh

@@ -1,4 +1,8 @@
 #!/bin/bash
+MIRROR=""
+if [ "$1" == "cn" ]; then
+  MIRROR="https://mirrors.goproxyauth.com/"
+fi
 F="proxy-linux-amd64_commercial.tar.gz"
 set -e
 if [ -e /tmp/proxy ]; then
@@ -7,9 +11,9 @@ fi
 mkdir /tmp/proxy
 cd /tmp/proxy
 echo -e "\n>>> downloading ... $F\n"
-manual="https://snail007.host900.com/goproxy/manual/zh/"
-LAST_VERSION=$(curl --silent "https://mirrors.host900.com/https://api.github.com/repos/snail007/goproxy/releases/latest" | grep -Po '"tag_name":"\K.*?(?=")')
-wget  -t 1 "https://mirrors.host900.com/https://github.com/snail007/goproxy/releases/download/${LAST_VERSION}/$F"
+manual="https://snail007.goproxyauth.com/goproxy/manual/zh/"
+LAST_VERSION=$(curl --silent "${MIRROR}https://api.github.com/repos/snail007/goproxy/releases/latest" | grep -Po '"tag_name": *"\K.*?(?=")')
+wget  -t 1 "${MIRROR}https://github.com/snail007/goproxy/releases/download/${LAST_VERSION}/$F"
 
 echo -e ">>> installing ... \n"
 # #install proxy