Added passenger support. Partialy 1

This commit is contained in:
Alexey Berezhok
2024-12-03 21:44:39 +03:00
parent 92f77aceca
commit d0da95dfc5
97 changed files with 5316 additions and 31 deletions

View File

@@ -69,8 +69,8 @@ HOSTNAME=$(hostname)
# Check OS/Release
if [ -d '/etc/sysconfig' ]; then
if [ -e '/etc/redhat-release' ]; then
OS='CentOS'
VERSION=$(cat /etc/redhat-release | tr ' ' '\n' | grep [0-9])
OS=$(cat /etc/redhat-release | cut -d' ' -f1)
VERSION=$(cat /etc/redhat-release | tr ' ' '\n' | grep -P "\d+(\.\d+)?")
else
OS="Amazon"
VERSION=$(cat /etc/issue | tr ' ' '\n' | grep [0-9])