From 2d688331df675eee946c659a24f2e95c7959a59c Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Thu, 12 Oct 2023 15:32:04 -0400 Subject: [PATCH] handle version install for stable and onedir install type --- salt/salt/scripts/bootstrap-salt.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/salt/salt/scripts/bootstrap-salt.sh b/salt/salt/scripts/bootstrap-salt.sh index 464243c84..d422a5295 100644 --- a/salt/salt/scripts/bootstrap-salt.sh +++ b/salt/salt/scripts/bootstrap-salt.sh @@ -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"