mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
adding rhel8.4 support to cloud agent deploy
This commit is contained in:
parent
1ebc2ed082
commit
e094869de8
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# define variables
|
# define variables
|
||||||
PANDORA_AGENT_CONF=/etc/pandora/pandora_agent.conf
|
PANDORA_AGENT_CONF=/etc/pandora/pandora_agent.conf
|
||||||
S_VERSION='2021012801'
|
S_VERSION='2021100601'
|
||||||
LOGFILE="/tmp/pandora-agent-deploy-$(date +%F).log"
|
LOGFILE="/tmp/pandora-agent-deploy-$(date +%F).log"
|
||||||
|
|
||||||
# Ansi color code variables
|
# Ansi color code variables
|
||||||
@ -83,6 +83,7 @@ execute_cmd "[ $PANDORA_SERVER_IP ]" 'Check Server IP Address' 'Please define e
|
|||||||
OS=$([[ $(grep '^ID_LIKE=' /etc/os-release) ]] && grep ^ID_LIKE= /etc/os-release | cut -d '=' -f2 | tr -d '"' || grep ^ID= /etc/os-release | cut -d '=' -f2 | tr -d '"')
|
OS=$([[ $(grep '^ID_LIKE=' /etc/os-release) ]] && grep ^ID_LIKE= /etc/os-release | cut -d '=' -f2 | tr -d '"' || grep ^ID= /etc/os-release | cut -d '=' -f2 | tr -d '"')
|
||||||
|
|
||||||
[[ $OS == 'rhel fedora' ]] && OS_RELEASE=$OS
|
[[ $OS == 'rhel fedora' ]] && OS_RELEASE=$OS
|
||||||
|
[[ $OS == 'fedora' ]] && OS_RELEASE=$OS
|
||||||
[[ $OS == 'centos rhel fedora' ]] && OS_RELEASE=$OS
|
[[ $OS == 'centos rhel fedora' ]] && OS_RELEASE=$OS
|
||||||
[[ $OS == 'debian' ]] && OS_RELEASE=$OS
|
[[ $OS == 'debian' ]] && OS_RELEASE=$OS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user