diff --git a/src/freedombone b/src/freedombone index 1c5db68f..074afadd 100755 --- a/src/freedombone +++ b/src/freedombone @@ -195,7 +195,7 @@ GIT_DOMAIN_NAME= GIT_CODE= GIT_DOMAIN_REPO="https://github.com/gogits/gogs.git" GIT_ADMIN_PASSWORD= -GOGS_COMMIT='ea375c0dcca118c8ac3c48ba569b025836ad5ccf' +GOGS_COMMIT='efea642d6cf419c9587d44b95ff2bc04e89f7bfe' # Domain name for Owncloud installation OWNCLOUD_DOMAIN_NAME= @@ -6123,11 +6123,20 @@ function install_gogs { cd $GOPATH/src/github.com/gogits/gogs git stash git checkout master - git pull + git pull origin master 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 go get -u ./... + if [ ! "$?" = "0" ]; then + exit 52792 + fi go build + if [ ! "$?" = "0" ]; then + exit 36226 + fi systemctl restart gogs fi else