summaryrefslogtreecommitdiff
path: root/branding/templates/osx/template-postinstall
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2019-07-15 18:06:29 +0200
committerRuben Pollan <meskio@sindominio.net>2019-08-05 11:46:16 -0400
commit1106467f972e6e5d6781412e999d7c44195bb2df (patch)
treea0f72d3902407564439cfe866aeba4a03d9854bb /branding/templates/osx/template-postinstall
parentf8218b2beb8b184e7b3585f1280695ecfef040f9 (diff)
[feat] osx build templates
Diffstat (limited to 'branding/templates/osx/template-postinstall')
-rw-r--r--branding/templates/osx/template-postinstall14
1 files changed, 14 insertions, 0 deletions
diff --git a/branding/templates/osx/template-postinstall b/branding/templates/osx/template-postinstall
new file mode 100644
index 0000000..377508c
--- /dev/null
+++ b/branding/templates/osx/template-postinstall
@@ -0,0 +1,14 @@
+#!/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/$applicationName-install.log
+
+chmod +x /Applications/$applicationName.app/Contents/MacOS/bitmask-helper
+cp se.leap.bitmask-helper.plist /Library/LaunchDaemons/ \
+ && echo `date` ":: $applicationName post-install: copied bitmask-helper Plist." >> $$LOG
+launchctl load /Library/LaunchDaemons/se.leap.bitmask-helper.plist && echo `date` ":: $applicationName post-install: loaded bitmask-helper." >> $$LOG
+chown admin:wheel /Applications/$applicationName.app/Contents/helper
+echo `date` ":: $applicationName post-install: ok." >> $$LOG
+exit 0