From 49c2604e17fb675a776229460687c0f49ecb003a Mon Sep 17 00:00:00 2001 From: allan Date: Sat, 6 Dec 2025 10:18:07 +0100 Subject: [PATCH] comment corrections only no code changes --- zabbixinstall | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/zabbixinstall b/zabbixinstall index d7cee6c..d3226be 100755 --- a/zabbixinstall +++ b/zabbixinstall @@ -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