gogs known working commit
This commit is contained in:
parent
08d28a34d6
commit
c82e56908f
|
@ -195,7 +195,7 @@ GIT_DOMAIN_NAME=
|
||||||
GIT_CODE=
|
GIT_CODE=
|
||||||
GIT_DOMAIN_REPO="https://github.com/gogits/gogs.git"
|
GIT_DOMAIN_REPO="https://github.com/gogits/gogs.git"
|
||||||
GIT_ADMIN_PASSWORD=
|
GIT_ADMIN_PASSWORD=
|
||||||
GOGS_COMMIT='ea375c0dcca118c8ac3c48ba569b025836ad5ccf'
|
GOGS_COMMIT='efea642d6cf419c9587d44b95ff2bc04e89f7bfe'
|
||||||
|
|
||||||
# Domain name for Owncloud installation
|
# Domain name for Owncloud installation
|
||||||
OWNCLOUD_DOMAIN_NAME=
|
OWNCLOUD_DOMAIN_NAME=
|
||||||
|
@ -6123,11 +6123,20 @@ function install_gogs {
|
||||||
cd $GOPATH/src/github.com/gogits/gogs
|
cd $GOPATH/src/github.com/gogits/gogs
|
||||||
git stash
|
git stash
|
||||||
git checkout master
|
git checkout master
|
||||||
git pull
|
git pull origin master
|
||||||
git checkout $GOGS_COMMIT -b $GOGS_COMMIT
|
git checkout $GOGS_COMMIT -b $GOGS_COMMIT
|
||||||
|
if [ ! "$?" = "0" ]; then
|
||||||
|
git checkout $GOGS_COMMIT
|
||||||
|
fi
|
||||||
sed -i "s/Gogs commit.*/Gogs commit:$GOGS_COMMIT/g" $COMPLETION_FILE
|
sed -i "s/Gogs commit.*/Gogs commit:$GOGS_COMMIT/g" $COMPLETION_FILE
|
||||||
go get -u ./...
|
go get -u ./...
|
||||||
|
if [ ! "$?" = "0" ]; then
|
||||||
|
exit 52792
|
||||||
|
fi
|
||||||
go build
|
go build
|
||||||
|
if [ ! "$?" = "0" ]; then
|
||||||
|
exit 36226
|
||||||
|
fi
|
||||||
systemctl restart gogs
|
systemctl restart gogs
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue