Browse Source

Upgrade gogs

Bob Mottram 6 years ago
parent
commit
611a6759ff
1 changed files with 9 additions and 9 deletions
  1. 9
    9
      src/freedombone-app-gogs

+ 9
- 9
src/freedombone-app-gogs View File

32
 SHOW_ON_ABOUT=1
32
 SHOW_ON_ABOUT=1
33
 
33
 
34
 GOGS_USERNAME='gogs'
34
 GOGS_USERNAME='gogs'
35
-GOGS_VERSION='0.11.29'
35
+GOGS_VERSION='0.11.53'
36
 
36
 
37
 GOGS_DOMAIN_NAME=
37
 GOGS_DOMAIN_NAME=
38
 GOGS_CODE=
38
 GOGS_CODE=
124
         fi
124
         fi
125
     fi
125
     fi
126
 
126
 
127
-    GOGS_FILE=linux_${CURR_ARCH}.tar.gz
128
-    GOGS_BIN="https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/${GOGS_FILE}"
127
+    GOGS_FILE=gogs_${GOGS_VERSION}_linux_${CURR_ARCH}.tar.gz
128
+    GOGS_BIN="https://dl.gogs.io/${GOGS_VERSION}/${GOGS_FILE}"
129
 }
129
 }
130
 
130
 
131
 function gogs_create_database {
131
 function gogs_create_database {
192
     if [ -d "${INSTALL_DIR}/gogs" ]; then
192
     if [ -d "${INSTALL_DIR}/gogs" ]; then
193
         rm -rf "${INSTALL_DIR}/gogs"
193
         rm -rf "${INSTALL_DIR}/gogs"
194
     fi
194
     fi
195
-    GOGS_FILE=linux_${CURR_ARCH}.tar.gz
195
+    GOGS_FILE=gogs_${GOGS_VERSION}_linux_${CURR_ARCH}.tar.gz
196
     if [ ! -f ${GOGS_FILE} ]; then
196
     if [ ! -f ${GOGS_FILE} ]; then
197
         wget ${GOGS_BIN}
197
         wget ${GOGS_BIN}
198
     fi
198
     fi
199
     if [ ! -f ${GOGS_FILE} ]; then
199
     if [ ! -f ${GOGS_FILE} ]; then
200
-        GOGS_FILE=linux_${CURR_ARCH}.zip
201
-        GOGS_BIN="https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/${GOGS_FILE}"
200
+        GOGS_FILE=gogs_${GOGS_VERSION}_linux_${CURR_ARCH}.zip
201
+        GOGS_BIN="https://dl.gogs.io/${GOGS_VERSION}/${GOGS_FILE}"
202
         if [ ! -f ${GOGS_FILE} ]; then
202
         if [ ! -f ${GOGS_FILE} ]; then
203
             wget ${GOGS_BIN}
203
             wget ${GOGS_BIN}
204
         fi
204
         fi
502
     if [ -d "$INSTALL_DIR/gogs" ]; then
502
     if [ -d "$INSTALL_DIR/gogs" ]; then
503
         rm -rf "$INSTALL_DIR/gogs"
503
         rm -rf "$INSTALL_DIR/gogs"
504
     fi
504
     fi
505
-    GOGS_FILE="linux_${CURR_ARCH}.tar.gz"
505
+    GOGS_FILE="gogs_${GOGS_VERSION}_linux_${CURR_ARCH}.tar.gz"
506
     if [ ! -f ${GOGS_FILE} ]; then
506
     if [ ! -f ${GOGS_FILE} ]; then
507
         wget ${GOGS_BIN}
507
         wget ${GOGS_BIN}
508
     fi
508
     fi
509
     if [ ! -f ${GOGS_FILE} ]; then
509
     if [ ! -f ${GOGS_FILE} ]; then
510
-        GOGS_FILE=linux_${CURR_ARCH}.zip
511
-        GOGS_BIN="https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/${GOGS_FILE}"
510
+        GOGS_FILE="gogs_${GOGS_VERSION}_linux_${CURR_ARCH}.zip"
511
+        GOGS_BIN="https://dl.gogs.io/${GOGS_VERSION}/${GOGS_FILE}"
512
         wget ${GOGS_BIN}
512
         wget ${GOGS_BIN}
513
         if [ ! -f ${GOGS_FILE} ]; then
513
         if [ ! -f ${GOGS_FILE} ]; then
514
             exit 37836
514
             exit 37836