gogs readme comments

This commit is contained in:
Bob Mottram 2015-03-20 19:52:16 +00:00
parent 1918b93de7
commit 9d9a0844dd
1 changed files with 8 additions and 2 deletions

View File

@ -6814,8 +6814,14 @@ function install_gogs {
echo '' >> /home/$MY_USERNAME/README
echo 'After the initial install edit /home/git/go/src/github.com/gogits/gogs/custom/conf/app.ini' >> /home/$MY_USERNAME/README
echo 'and within the [server] section set:' >> /home/$MY_USERNAME/README
echo "DOMAIN = $GIT_DOMAIN_NAME" >> /home/$MY_USERNAME/README
echo "ROOT_URL = https://$GIT_DOMAIN_NAME/" >> /home/$MY_USERNAME/README
echo " DOMAIN = $GIT_DOMAIN_NAME" >> /home/$MY_USERNAME/README
echo " ROOT_URL = http://$GIT_DOMAIN_NAME/" >> /home/$MY_USERNAME/README
echo " SSH_PORT = $SSH_PORT" >> /home/$MY_USERNAME/README
echo 'If you want to disable new account registrations then append the following:' >> /home/$MY_USERNAME/README
echo ' [service]' >> /home/$MY_USERNAME/README
echo ' DISABLE_REGISTRATION = true' >> /home/$MY_USERNAME/README
echo 'Then restart with:' >> /home/$MY_USERNAME/README
echo ' systemctl restart gogs' >> /home/$MY_USERNAME/README
echo '' >> /home/$MY_USERNAME/README
echo "Note that there's a usability/security trade-off made here." >> /home/$MY_USERNAME/README
echo "In order to allow git clone via http we don't redirect everything" >> /home/$MY_USERNAME/README