summaryrefslogtreecommitdiff
path: root/branding/templates/osx/template-preinstall
diff options
context:
space:
mode:
Diffstat (limited to 'branding/templates/osx/template-preinstall')
-rw-r--r--branding/templates/osx/template-preinstall12
1 files changed, 12 insertions, 0 deletions
diff --git a/branding/templates/osx/template-preinstall b/branding/templates/osx/template-preinstall
new file mode 100644
index 0000000..90fe7fe
--- /dev/null
+++ b/branding/templates/osx/template-preinstall
@@ -0,0 +1,12 @@
+#!/bin/sh
+# Bitmask Pre-Instalation script
+# (c) LEAP Encryption access Project
+# We unload the bitmask-helper if it is running, because we can be installing an upgrade.
+
+LOG=/tmp/$applicationName-install.log
+
+ps aux | grep [b]itmask-helper \
+ && launchctl unload /Library/LaunchDaemons/se.leap.bitmask-helper.plist \
+ && echo `date` ":: $applicationName pre-install: unloaded bitmask-helper." >> $$LOG
+echo `date` ":: $applicationName pre-install: ok." >> $$LOG
+exit 0