Skip to content

Commit

Permalink
Update Baseline_daemon-postinstall.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
BigMacAdmin committed May 5, 2023
1 parent 4251cd5 commit 3e775df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build/Baseline_daemon-postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ launchDPath="/Library/LaunchDaemons"
launchDName="com.secondsonconsulting.baseline"

#Load the launch daemon
launchctl load -w "$launchDPath"/"$launchDName".plist > /dev/null 2>&1
launchctl bootstrap system "$launchDPath"/"$launchDName".plist > /dev/null 2>&1
result=$(echo $?)

#Test if the load command failed
#Test if the bootstrap command failed
if [ "$result" != 0 ]; then
exit 1
fi
Expand Down

0 comments on commit 3e775df

Please sign in to comment.