1
0

Fixed OS detection not working

This commit is contained in:
Enrico Ludwig 2024-02-03 21:37:42 +01:00
parent 320a01ef24
commit 50527c5366

View File

@ -5,8 +5,8 @@ ZABBIX_SERVER_IP="192.168.8.41"
LOG_FILE="za2ai.log"
# Detect the operating system and version
OS=$(awk -F= '/^NAME/{print $2}' /etc/os-release)
VERSION=$(awk -F= '/^VERSION_ID/{print $2}' /etc/os-release)
OS=$(awk -F= '/^NAME/{print $2}' /etc/os-release | tr -d '"')
VERSION=$(awk -F= '/^VERSION_ID/{print $2}' /etc/os-release | tr -d '"')
# Log functions
_info() {