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