mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
change install_centos_onedir to install version provided from command line
This commit is contained in:
@@ -5126,17 +5126,30 @@ install_centos_onedir_deps() {
|
||||
install_centos_onedir() {
|
||||
__PACKAGES=""
|
||||
|
||||
local cloud='salt-cloud'
|
||||
local master='salt-master'
|
||||
local minion='salt-minion'
|
||||
local syndic='salt-syndic'
|
||||
local ver="$_ONEDIR_REV"
|
||||
|
||||
if [ ! -z $ver ]; then
|
||||
cloud+="-$ver"
|
||||
master+="-$ver"
|
||||
minion+="-$ver"
|
||||
syndic+="-$ver"
|
||||
fi
|
||||
|
||||
if [ "$_INSTALL_CLOUD" -eq $BS_TRUE ];then
|
||||
__PACKAGES="${__PACKAGES} salt-cloud"
|
||||
__PACKAGES="${__PACKAGES} $cloud"
|
||||
fi
|
||||
if [ "$_INSTALL_MASTER" -eq $BS_TRUE ];then
|
||||
__PACKAGES="${__PACKAGES} salt-master"
|
||||
__PACKAGES="${__PACKAGES} $master"
|
||||
fi
|
||||
if [ "$_INSTALL_MINION" -eq $BS_TRUE ]; then
|
||||
__PACKAGES="${__PACKAGES} salt-minion"
|
||||
__PACKAGES="${__PACKAGES} $minion"
|
||||
fi
|
||||
if [ "$_INSTALL_SYNDIC" -eq $BS_TRUE ];then
|
||||
__PACKAGES="${__PACKAGES} salt-syndic"
|
||||
__PACKAGES="${__PACKAGES} $syndic"
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
|
||||
Reference in New Issue
Block a user