mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
allow bootstrap-salt to install specific verion even if -r is used
This commit is contained in:
@@ -4221,8 +4221,13 @@ install_centos_stable() {
|
|||||||
local minion='salt-minion'
|
local minion='salt-minion'
|
||||||
local syndic='salt-syndic'
|
local syndic='salt-syndic'
|
||||||
|
|
||||||
if echo "$STABLE_REV" | grep -q "archive";then
|
if echo "$STABLE_REV" | grep -q "archive";then # point release being applied
|
||||||
local ver=$(echo "$STABLE_REV"|awk -F/ '{print $2}')
|
local ver=$(echo "$STABLE_REV"|awk -F/ '{print $2}') # strip archive/
|
||||||
|
elif echo "$STABLE_REV" | grep -vq "archive|latest";then # latest or major version(3003, 3004, etc) being applie
|
||||||
|
local ver=$STABLE_REV
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -z $ver ]; then
|
||||||
cloud+="-$ver"
|
cloud+="-$ver"
|
||||||
master+="-$ver"
|
master+="-$ver"
|
||||||
minion+="-$ver"
|
minion+="-$ver"
|
||||||
|
|||||||
Reference in New Issue
Block a user