mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
macOS fixes
This commit is contained in:
parent
d6d9484a0c
commit
2ebf81af42
1 changed files with 4 additions and 0 deletions
4
.github/actions/ssh-tunnel/action.yml
vendored
4
.github/actions/ssh-tunnel/action.yml
vendored
|
@ -36,6 +36,8 @@ runs:
|
|||
run: |
|
||||
if [ "$RUNNER_OS" = "Windows" ]; then
|
||||
powershell.exe -command "Start-Service sshd"
|
||||
elif [ "$RUNNER_OS" = "macOS" ]; then
|
||||
sudo launchctl start com.openssh.sshd
|
||||
else
|
||||
sudo systemctl start ssh
|
||||
fi
|
||||
|
@ -75,6 +77,8 @@ runs:
|
|||
if [ "${{ inputs.debug }}" = "true" ]; then
|
||||
if [ "$RUNNER_OS" = "Windows" ]; then
|
||||
powershell.exe -command "Stop-Service sshd"
|
||||
elif [ "$RUNNER_OS" = "macOS" ]; then
|
||||
sudo launchctl stop com.openssh.sshd
|
||||
else
|
||||
sudo systemctl stop ssh
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue