allow bootstrap-salt to install specific verion even if -r is used

This commit is contained in:
m0duspwnens
2022-06-30 16:59:54 -04:00
parent 7524ea2c05
commit f0ff0d51f7

View File

@@ -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"