Add support for the -R flag on macOS.

This commit is contained in:
pjcreath 2022-09-20 19:32:59 +00:00
parent 614fac2709
commit ad4cb2d040
No known key found for this signature in database
GPG key ID: 1A4521E73AC8EC9D

View file

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