Don't show gogs footer
This commit is contained in:
parent
1431511b73
commit
f2c0f970eb
|
@ -6446,12 +6446,14 @@ function install_gogs {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# http://gogs.io/docs/installation/install_from_source.md
|
|
||||||
|
|
||||||
if [ -d $GOPATH/src/github.com/gogits ]; then
|
if [ -d $GOPATH/src/github.com/gogits ]; then
|
||||||
rm -rf $GOPATH/src/github.com/gogits
|
rm -rf $GOPATH/src/github.com/gogits
|
||||||
fi
|
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
|
if [ -d /home/git/gogs-repositories ]; then
|
||||||
rm -rf /home/git/gogs-repositories
|
rm -rf /home/git/gogs-repositories
|
||||||
fi
|
fi
|
||||||
|
@ -6760,6 +6762,10 @@ function install_gogs {
|
||||||
echo 'SHOW_REGISTRATION_BUTTON = true' >> $GOGS_CONFIG_FILE
|
echo 'SHOW_REGISTRATION_BUTTON = true' >> $GOGS_CONFIG_FILE
|
||||||
echo 'REQUIRE_SIGNIN_VIEW = false' >> $GOGS_CONFIG_FILE
|
echo 'REQUIRE_SIGNIN_VIEW = false' >> $GOGS_CONFIG_FILE
|
||||||
echo 'ENABLE_CAPTCHA = 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
|
chmod 750 $GOGS_CONFIG_FILE
|
||||||
chown -R git:git /home/git
|
chown -R git:git /home/git
|
||||||
|
|
Loading…
Reference in New Issue