diff options
Diffstat (limited to 'osx/template-postinstall')
-rwxr-xr-x | osx/template-postinstall | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/osx/template-postinstall b/osx/template-postinstall new file mode 100755 index 0000000..aad3cae --- /dev/null +++ b/osx/template-postinstall @@ -0,0 +1,13 @@ +#!/bin/sh +# Bitmask Post-Instalation script +# (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 + +chmod +x /Applications/$app_name.app/Contents/MacOS/bitmask-helper +cp se.leap.bitmask-helper.plist /Library/LaunchDaemons/ \ + && echo `date` ":: $app_name post-install: copied bitmask-helper Plist." >> $LOG +launchctl load /Library/LaunchDaemons/se.leap.bitmask-helper.plist && echo `date` ":: $app_name post-install: loaded bitmask-helper." >> $LOG +echo `date` ":: $app_name post-install: ok." >> $LOG +exit 0 |