Upgrade gogs
This commit is contained in:
parent
43cf7e3d20
commit
611a6759ff
|
@ -32,7 +32,7 @@ IN_DEFAULT_INSTALL=0
|
|||
SHOW_ON_ABOUT=1
|
||||
|
||||
GOGS_USERNAME='gogs'
|
||||
GOGS_VERSION='0.11.29'
|
||||
GOGS_VERSION='0.11.53'
|
||||
|
||||
GOGS_DOMAIN_NAME=
|
||||
GOGS_CODE=
|
||||
|
@ -124,8 +124,8 @@ function gogs_parameters {
|
|||
fi
|
||||
fi
|
||||
|
||||
GOGS_FILE=linux_${CURR_ARCH}.tar.gz
|
||||
GOGS_BIN="https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/${GOGS_FILE}"
|
||||
GOGS_FILE=gogs_${GOGS_VERSION}_linux_${CURR_ARCH}.tar.gz
|
||||
GOGS_BIN="https://dl.gogs.io/${GOGS_VERSION}/${GOGS_FILE}"
|
||||
}
|
||||
|
||||
function gogs_create_database {
|
||||
|
@ -192,13 +192,13 @@ function upgrade_gogs {
|
|||
if [ -d "${INSTALL_DIR}/gogs" ]; then
|
||||
rm -rf "${INSTALL_DIR}/gogs"
|
||||
fi
|
||||
GOGS_FILE=linux_${CURR_ARCH}.tar.gz
|
||||
GOGS_FILE=gogs_${GOGS_VERSION}_linux_${CURR_ARCH}.tar.gz
|
||||
if [ ! -f ${GOGS_FILE} ]; then
|
||||
wget ${GOGS_BIN}
|
||||
fi
|
||||
if [ ! -f ${GOGS_FILE} ]; then
|
||||
GOGS_FILE=linux_${CURR_ARCH}.zip
|
||||
GOGS_BIN="https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/${GOGS_FILE}"
|
||||
GOGS_FILE=gogs_${GOGS_VERSION}_linux_${CURR_ARCH}.zip
|
||||
GOGS_BIN="https://dl.gogs.io/${GOGS_VERSION}/${GOGS_FILE}"
|
||||
if [ ! -f ${GOGS_FILE} ]; then
|
||||
wget ${GOGS_BIN}
|
||||
fi
|
||||
|
@ -502,13 +502,13 @@ function install_gogs {
|
|||
if [ -d "$INSTALL_DIR/gogs" ]; then
|
||||
rm -rf "$INSTALL_DIR/gogs"
|
||||
fi
|
||||
GOGS_FILE="linux_${CURR_ARCH}.tar.gz"
|
||||
GOGS_FILE="gogs_${GOGS_VERSION}_linux_${CURR_ARCH}.tar.gz"
|
||||
if [ ! -f ${GOGS_FILE} ]; then
|
||||
wget ${GOGS_BIN}
|
||||
fi
|
||||
if [ ! -f ${GOGS_FILE} ]; then
|
||||
GOGS_FILE=linux_${CURR_ARCH}.zip
|
||||
GOGS_BIN="https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/${GOGS_FILE}"
|
||||
GOGS_FILE="gogs_${GOGS_VERSION}_linux_${CURR_ARCH}.zip"
|
||||
GOGS_BIN="https://dl.gogs.io/${GOGS_VERSION}/${GOGS_FILE}"
|
||||
wget ${GOGS_BIN}
|
||||
if [ ! -f ${GOGS_FILE} ]; then
|
||||
exit 37836
|
||||
|
|
Loading…
Reference in New Issue