mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +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 syndic='salt-syndic'
|
||||
|
||||
if echo "$STABLE_REV" | grep -q "archive";then
|
||||
local ver=$(echo "$STABLE_REV"|awk -F/ '{print $2}')
|
||||
if echo "$STABLE_REV" | grep -q "archive";then # point release being applied
|
||||
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"
|
||||
master+="-$ver"
|
||||
minion+="-$ver"
|
||||
|
||||
Reference in New Issue
Block a user