summaryrefslogtreecommitdiff
path: root/data/openssh/_metadata/extrainst_
blob: 007af8999f39be45113974267b74f9144bd9182b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

if [[ $1 == upgrade ]]; then
    /bin/launchctl unload /Library/LaunchDaemons/com.openssh.sshd.plist
    /bin/launchctl load /Library/LaunchDaemons/com.openssh.sshd.plist
fi

if [[ $1 == install ]]; then
    /bin/launchctl load -w /Library/LaunchDaemons/com.openssh.sshd.plist
fi

exit 0