comment corrections only no code changes

This commit is contained in:
2025-12-06 11:46:43 +01:00
parent 2df38d031e
commit b5bd358cb6

View File

@@ -19,7 +19,7 @@ if ss -tuln | grep -q ":${giteaport}\b"; then
listener=$(ss -tulpn 2>/dev/null | awk -v port=":${giteaport}\\b" '$0 ~ port && /LISTEN/ {print $7}' | sed 's/users:(("//; s/",.*//')
if [[ "$listener" == gitea* ]]; then
printf "Detected a running Gitea-related process: %s\n" "$listener"
printf "It looks like another Gitea multi-instance installation has not yet completed.\n"
printf "It appears another Gitea multi-instance installation has not yet completed.\n"
printf "Please finish its web installer and run its postinstall script before continuing.\n\n"
elif [[ -n "$listener" ]]; then
printf "Process using port %s : %s\n" "$giteaport" "$listener"
@@ -33,7 +33,7 @@ if ss -tuln | grep -q ":${giteaport}\b"; then
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
@@ -287,7 +287,7 @@ EOF
systemctl daemon-reload ; systemctl enable "$giteauser" ; systemctl start "$giteauser"
#
# Create post-install script
# Create postinstall script
#
postscript="/etc/$giteauser/gitea-postinstall"
cat > "$postscript" <<EOF
@@ -339,7 +339,7 @@ EOF
chmod 755 "$postscript"
#
# Gitea post-install notice
# Gitea postinstall notice
#
postnotice=$(cat <<EOF
--------------------------------------------------------------------------------------