From f2c0f970ebd4ebaa60b1f513632b47ff82354e6b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 12 May 2016 15:37:37 +0100 Subject: [PATCH] Don't show gogs footer --- src/freedombone | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/freedombone b/src/freedombone index 4d8581f7..b396c17f 100755 --- a/src/freedombone +++ b/src/freedombone @@ -6446,12 +6446,14 @@ function install_gogs { return fi - # http://gogs.io/docs/installation/install_from_source.md - if [ -d $GOPATH/src/github.com/gogits ]; then rm -rf $GOPATH/src/github.com/gogits fi + if [ -d /home/git/gvm/pkgsets/go${GO_VERSION}/global/src/github.com/gogits ]; then + rm -rf /home/git/gvm/pkgsets/go${GO_VERSION}/global/src/github.com/gogits + fi + if [ -d /home/git/gogs-repositories ]; then rm -rf /home/git/gogs-repositories fi @@ -6760,6 +6762,10 @@ function install_gogs { echo 'SHOW_REGISTRATION_BUTTON = true' >> $GOGS_CONFIG_FILE echo 'REQUIRE_SIGNIN_VIEW = false' >> $GOGS_CONFIG_FILE echo 'ENABLE_CAPTCHA = false' >> $GOGS_CONFIG_FILE + echo '' >> $GOGS_CONFIG_FILE + echo '[other]' >> $GOGS_CONFIG_FILE + echo 'SHOW_FOOTER_BRANDING = false' >> $GOGS_CONFIG_FILE + echo 'SHOW_FOOTER_VERSION = false' >> $GOGS_CONFIG_FILE chmod 750 $GOGS_CONFIG_FILE chown -R git:git /home/git