From c035917e5318ac494c8b9e7d9fdf09ddcb424006 Mon Sep 17 00:00:00 2001 From: kali Date: Sat, 5 Aug 2017 15:36:21 -0700 Subject: [pkg] improve logging for the osx install scripts --- pkg/osx/scripts/postinstall | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'pkg/osx/scripts/postinstall') diff --git a/pkg/osx/scripts/postinstall b/pkg/osx/scripts/postinstall index 9c2176b2..393ab658 100755 --- a/pkg/osx/scripts/postinstall +++ b/pkg/osx/scripts/postinstall @@ -1,6 +1,12 @@ #!/bin/sh # Bitmask Post-Instalation script -cp se.leap.bitmask-helper.plist /Library/LaunchDaemons/ -launchctl load /Library/LaunchDaemons/se.leap.bitmask-helper.plist || echo "Already loaded, skipping..." -echo `date` "::Bitmask post-installation script succeeded." >> /tmp/bitmask-install.log +# (c) LEAP Encryption access Project +# We copy the bitmask-helper plist to the LaunchDaemons folder, and load the bitmask-helper that runs as root. + +LOG=/tmp/bitmask-install.log + +cp se.leap.bitmask-helper.plist /Library/LaunchDaemons/ \ + && echo `date` ":: Bitmask post-install: copied bitmask-helper Plist." >> $LOG +launchctl load /Library/LaunchDaemons/se.leap.bitmask-helper.plist && echo `date` ":: Bitmask post-install: loaded bitmask-helper." >> $LOG +echo `date` ":: Bitmask post-install: ok." >> $LOG exit 0 -- cgit v1.2.3