summaryrefslogtreecommitdiff
path: root/osx/template-postinstall
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-07-04 23:14:14 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2018-07-07 04:55:10 +0200
commit5f66af8266eda3e8bc5d1b394e5fb81271b7733f (patch)
tree78261b5930394e798af51f96119340651237e145 /osx/template-postinstall
parent89bb53fe82c048fc322075b67b1bc7048d4fc53d (diff)
[pkg] generate install scripts for helper
Diffstat (limited to 'osx/template-postinstall')
-rwxr-xr-xosx/template-postinstall13
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