mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix binary paths for classic macos packages
This commit is contained in:
parent
8c44dbcc1c
commit
dcd1f80cf8
1 changed files with 18 additions and 0 deletions
|
@ -330,6 +330,24 @@ class SaltPkgInstall:
|
|||
self.proc.run(
|
||||
*self.binary_paths["pip"], "install", "-U", "pyopenssl"
|
||||
)
|
||||
if platform.is_darwin():
|
||||
# `which` is not catching the right paths on downgrades, explicitly defining them here
|
||||
self.binary_paths = {
|
||||
"salt": [self.bin_dir / "salt"],
|
||||
"api": [self.bin_dir / "salt-api"],
|
||||
"call": [self.bin_dir / "salt-call"],
|
||||
"cloud": [self.bin_dir / "salt-cloud"],
|
||||
"cp": [self.bin_dir / "salt-cp"],
|
||||
"key": [self.bin_dir / "salt-key"],
|
||||
"master": [self.bin_dir / "salt-master"],
|
||||
"minion": [self.bin_dir / "salt-minion"],
|
||||
"proxy": [self.bin_dir / "salt-proxy"],
|
||||
"run": [self.bin_dir / "salt-run"],
|
||||
"ssh": [self.bin_dir / "salt-ssh"],
|
||||
"syndic": [self.bin_dir / "salt-syndic"],
|
||||
"spm": [self.bin_dir / "spm"],
|
||||
"python": [str(pathlib.Path("/usr/bin/python3"))],
|
||||
}
|
||||
else:
|
||||
self.binary_paths["python"] = [shutil.which("salt"), "shell"]
|
||||
if platform.is_darwin():
|
||||
|
|
Loading…
Add table
Reference in a new issue