Browse Source

Don't show gogs footer

Bob Mottram 9 years ago
parent
commit
f2c0f970eb
1 changed files with 8 additions and 2 deletions
  1. 8
    2
      src/freedombone

+ 8
- 2
src/freedombone View File

@@ -6446,12 +6446,14 @@ function install_gogs {
6446 6446
 		return
6447 6447
 	fi
6448 6448
 
6449
-	# http://gogs.io/docs/installation/install_from_source.md
6450
-
6451 6449
 	if [ -d $GOPATH/src/github.com/gogits ]; then
6452 6450
 		rm -rf $GOPATH/src/github.com/gogits
6453 6451
 	fi
6454 6452
 
6453
+	if [ -d /home/git/gvm/pkgsets/go${GO_VERSION}/global/src/github.com/gogits ]; then
6454
+		rm -rf /home/git/gvm/pkgsets/go${GO_VERSION}/global/src/github.com/gogits
6455
+	fi
6456
+
6455 6457
 	if [ -d /home/git/gogs-repositories ]; then
6456 6458
 		rm -rf /home/git/gogs-repositories
6457 6459
 	fi
@@ -6760,6 +6762,10 @@ function install_gogs {
6760 6762
 	echo 'SHOW_REGISTRATION_BUTTON = true' >> $GOGS_CONFIG_FILE
6761 6763
 	echo 'REQUIRE_SIGNIN_VIEW = false' >> $GOGS_CONFIG_FILE
6762 6764
 	echo 'ENABLE_CAPTCHA = false' >> $GOGS_CONFIG_FILE
6765
+	echo '' >> $GOGS_CONFIG_FILE
6766
+	echo '[other]' >> $GOGS_CONFIG_FILE
6767
+	echo 'SHOW_FOOTER_BRANDING = false' >> $GOGS_CONFIG_FILE
6768
+	echo 'SHOW_FOOTER_VERSION = false' >> $GOGS_CONFIG_FILE
6763 6769
 
6764 6770
 	chmod 750 $GOGS_CONFIG_FILE
6765 6771
 	chown -R git:git /home/git