mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix ssh load and unload on macos
This commit is contained in:
parent
08844f7388
commit
1202852c4b
1 changed files with 2 additions and 2 deletions
4
.github/actions/ssh-tunnel/action.yml
vendored
4
.github/actions/ssh-tunnel/action.yml
vendored
|
@ -37,7 +37,7 @@ runs:
|
|||
if [ "$RUNNER_OS" = "Windows" ]; then
|
||||
powershell.exe -command "Start-Service sshd"
|
||||
elif [ "$RUNNER_OS" = "macOS" ]; then
|
||||
sudo launchctl start com.openssh.sshd
|
||||
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
|
||||
else
|
||||
sudo systemctl start ssh
|
||||
fi
|
||||
|
@ -78,7 +78,7 @@ runs:
|
|||
if [ "$RUNNER_OS" = "Windows" ]; then
|
||||
powershell.exe -command "Stop-Service sshd"
|
||||
elif [ "$RUNNER_OS" = "macOS" ]; then
|
||||
sudo launchctl stop com.openssh.sshd
|
||||
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
|
||||
else
|
||||
sudo systemctl stop ssh
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue