Cosmetic changes

This commit is contained in:
2022-01-22 00:27:43 +01:00
parent b1acff2d70
commit b6e4359965

View File

@@ -11,6 +11,8 @@ giteaDir="/usr/local/bin"
giteaLoc="${giteaDir}/gitea"
giteaService="https://raw.githubusercontent.com/go-gitea/gitea/master/contrib/systemd/gitea.service"
giteaServiceLoc="/etc/systemd/system/gitea.service"
giteaConfigDir="/etc/gitea"
giteaIniLoc="${giteaConfigDir}/app.ini"
step_config() {
if [ -z $giteaVersion ] ; then
@@ -89,11 +91,10 @@ step_6() {
step_7_info() { echo "Show configuration notes"; }
step_7_alias() { ALIAS="notes"; }
step_7() {
echo -e "Final configuration notes for app.ini:\n\n"
echo "$CONFIG_NOTES"
}
outColor green
cat <<NOTES_END
Final configuration notes for $giteaIniLoc:
CONFIG_NOTES="\
[repository]
DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH = true
@@ -111,7 +112,9 @@ NO_REPLY_ADDRESS = yourdomain.com
[attachment]
# Allow more archives to be uploaded
ALLOWED_TYPES=application/zip|application/gzip|application/x-zip|application/x-gzip|application/x-shellscript|text/markdown"
ALLOWED_TYPES=application/zip|application/gzip|application/x-zip|application/x-gzip|application/x-shellscript|text/markdown
NOTES_END
}
step_10_info() { echo "Create mysql database for $toolName"; }
step_10() {
@@ -152,8 +155,8 @@ giteaDownLoc="/tmp/giteaDown"
step_20_info() { echo "Secure settings after installation"; }
step_20() {
exe chmod 750 /etc/gitea
exe chmod 644 /etc/gitea/app.ini
exe chmod 750 "$giteaConfigDir"
exe chmod 644 "$giteaIniLoc"
}
# Sequence Revision