From ad4cb2d040dcba6e73879e65eb29ae57745f6104 Mon Sep 17 00:00:00 2001 From: pjcreath Date: Tue, 20 Sep 2022 19:32:59 +0000 Subject: [PATCH] Add support for the -R flag on macOS. --- bootstrap-salt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 6eed0f7..21999b3 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -388,7 +388,7 @@ __usage() { points to a repository that mirrors Salt packages located at repo.saltproject.io. The option passed with -R replaces the "repo.saltproject.io". If -R is passed, -r is also set. Currently only - works on CentOS/RHEL and Debian based distributions. + works on CentOS/RHEL and Debian based distributions and macOS. -s Sleep time used when waiting for daemons to start, restart and when checking for the services running. Default: ${__DEFAULT_SLEEP} -S Also install salt-syndic @@ -8230,7 +8230,7 @@ __macosx_get_packagesite() { fi PKG="salt-${STABLE_REV}-${__PY_VERSION_REPO}-${DARWIN_ARCH}.pkg" - SALTPKGCONFURL="https://repo.saltproject.io/osx/${PKG}" + SALTPKGCONFURL="https://${_REPO_URL}/osx/${PKG}" } # Using a separate conf step to head for idempotent install...