macOS fixes

This commit is contained in:
Daniel A. Wozniak 2025-02-01 01:11:04 -07:00 committed by Daniel Wozniak
parent d6d9484a0c
commit 2ebf81af42

View file

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