handle version install for stable and onedir install type

This commit is contained in:
m0duspwnens
2023-10-12 15:32:04 -04:00
parent b12c4a96e9
commit 2d688331df

View File

@@ -5130,7 +5130,11 @@ install_centos_onedir() {
local master='salt-master'
local minion='salt-minion'
local syndic='salt-syndic'
local ver="$_ONEDIR_REV"
if [ "$ITYPE" = "stable" ]; then
local ver="$_ONEDIR_REV"
elif [ "$ITYPE" = "onedir" ]; then
local ver="${ONEDIR_REV##*/}"
fi
if [ ! -z $ver ]; then
cloud+="-$ver"