diff options
Diffstat (limited to 'data/openssh/_metadata')
-rwxr-xr-x | data/openssh/_metadata/extrainst_ (renamed from data/openssh/_metadata/postinst) | 5 | ||||
-rwxr-xr-x | data/openssh/_metadata/prerm | 5 | ||||
-rw-r--r-- | data/openssh/_metadata/version | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/data/openssh/_metadata/postinst b/data/openssh/_metadata/extrainst_ index 4899fcae7..f1e8ec5a3 100755 --- a/data/openssh/_metadata/postinst +++ b/data/openssh/_metadata/extrainst_ @@ -1,4 +1,7 @@ #!/bin/sh -/bin/launchctl list com.openssh.sshd &>/dev/null || + +if [[ $1 == install || $1 == upgrade ]]; then /bin/launchctl load /Library/LaunchDaemons/com.openssh.sshd.plist +fi + exit 0 diff --git a/data/openssh/_metadata/prerm b/data/openssh/_metadata/prerm index 17abc80ef..71be0c498 100755 --- a/data/openssh/_metadata/prerm +++ b/data/openssh/_metadata/prerm @@ -1,4 +1,7 @@ #!/bin/sh -! /bin/launchctl list com.openssh.sshd &>/dev/null || + +if [[ $1 == remove || $1 == purge ]]; then /bin/launchctl unload /Library/LaunchDaemons/com.openssh.sshd.plist +fi + exit 0 diff --git a/data/openssh/_metadata/version b/data/openssh/_metadata/version index ca85c0a6f..5d11f1120 100644 --- a/data/openssh/_metadata/version +++ b/data/openssh/_metadata/version @@ -1 +1 @@ -5.1p1 +5.2p1 |