comment corrections only no code changes

This commit is contained in:
2025-12-06 10:18:07 +01:00
parent a9a5cd869b
commit 49c2604e17

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MIT
# Author : Allan Christensen
# First Created : 11012021 (DD-MM-YYYY)
@@ -12,18 +11,18 @@
if [[ $(id -u) -ne 0 ]]; then echo "" && echo "Must be root or use sudo" && echo "" ; exit 1 ; fi
#
# Get php-fpm version
# Get PHP-FPM version
#
phpfpm=$(systemctl list-unit-files --type=service | awk '/php[0-9]+\.[0-9]+-fpm\.service/ {sub(".service","",$1); print $1; exit}')
if [[ -z "$phpfpm" ]]; then printf "\nUnable to detect php-fpm version. Is PHP-FPM installed?\n\n" ; exit 1 ; fi
#
# Check if required services are running or not
# Check if required services are running
#
for svc in nginx mariadb "$phpfpm"; do systemctl is-active --quiet "$svc" || { printf "\n%s is not running, cannot continue...\n\n" "${svc^}" ; exit 1 ; }; done
#
# Check MariaDB authentication method (socket or not)
# Check MariaDB authentication method (socket or password)
#
if mysql -u root -e ";" 2>/dev/null; then
socket="SOCKET DETECTED — no need for -a or -m"
@@ -240,7 +239,7 @@ systemctl restart "$phpfpm"
systemctl restart nginx
#
# Post-install notic
# Post-install notice
#
if [[ "$socketauth" == "no" ]]; then
@@ -248,13 +247,13 @@ if [[ "$socketauth" == "no" ]]; then
---------------------------------------------------------------------------------------------------
IMPORTANT (NO SOCKET AUTH DETECTED):
Database is running in PASSWORD authentication mode.
Database is using in password authentication mode.
When using the Zabbix WEB INSTALLER you MUST enter:
When using the Zabbix Web installer you MUST enter:
Database host: 127.0.0.1
If you enter "localhost", Zabbix will attempt UNIX socket authentication and FAIL.
If you enter "localhost", Zabbix will attempt UNIX socket authentication and fail.
Database password: $dbpass