comment corrections only no code changes

This commit is contained in:
2025-12-06 11:16:48 +01:00
parent e0d5ffee3a
commit e8b6c5a3e9

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MIT
# Author : Allan Christensen
# First Created : 12032021 (DD-MM-YYYY)
@@ -12,7 +11,7 @@
if [[ $(id -u) -ne 0 ]]; then echo "" && echo "Must be root or use sudo" && echo "" ; exit ; fi
#
# Check if required services are running or not
# Check if required services are running
#
for svc in nginx mariadb; do systemctl is-active --quiet "$svc" || { printf "\n%s is not running, cannot continue...\n\n" "${svc^}" ; exit 1 ; }; done
@@ -274,20 +273,20 @@ WantedBy=multi-user.target
EOF
#
# Start Gitea services
# Start Gitea service
#
systemctl daemon-reload
systemctl enable gitea
systemctl start gitea
#
# Create postinstall script
# Create post-install script
#
cat > /tmp/gitea-postinstall <<EOF
#!/usr/bin/env bash
#
# Gitea Postinstall Script
# Gitea post-install Script
#
if [[ \$(id -u) -ne 0 ]]; then echo "" && echo "Must be root or use sudo" && echo "" ; exit ; fi
@@ -331,7 +330,7 @@ EOF
chmod 755 /tmp/gitea-postinstall
#
# Gitea postinstall notice
# Gitea post-install notice
#
postnotice=$(cat <<EOF
--------------------------------------------------------------------------------------