diff options
-rwxr-xr-x | data/openssh/_metadata/postinst | 3 | ||||
-rwxr-xr-x | data/openssh/_metadata/prerm | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/data/openssh/_metadata/postinst b/data/openssh/_metadata/postinst index 6d47c8d6f..4899fcae7 100755 --- a/data/openssh/_metadata/postinst +++ b/data/openssh/_metadata/postinst @@ -1,3 +1,4 @@ #!/bin/sh -/bin/launchctl load /Library/LaunchDaemons/com.openssh.sshd.plist +/bin/launchctl list com.openssh.sshd &>/dev/null || + /bin/launchctl load /Library/LaunchDaemons/com.openssh.sshd.plist exit 0 diff --git a/data/openssh/_metadata/prerm b/data/openssh/_metadata/prerm index b717b6b1c..17abc80ef 100755 --- a/data/openssh/_metadata/prerm +++ b/data/openssh/_metadata/prerm @@ -1,3 +1,4 @@ #!/bin/sh -/bin/launchctl unload /Library/LaunchDaemons/com.openssh.sshd.plist +! /bin/launchctl list com.openssh.sshd &>/dev/null || + /bin/launchctl unload /Library/LaunchDaemons/com.openssh.sshd.plist exit 0 |