summaryrefslogtreecommitdiff
path: root/data/openssh/_metadata/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'data/openssh/_metadata/postinst')
-rwxr-xr-xdata/openssh/_metadata/postinst3
1 files changed, 2 insertions, 1 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