summaryrefslogtreecommitdiff
path: root/osx/template-preinstall
diff options
context:
space:
mode:
Diffstat (limited to 'osx/template-preinstall')
-rwxr-xr-xosx/template-preinstall12
1 files changed, 12 insertions, 0 deletions
diff --git a/osx/template-preinstall b/osx/template-preinstall
new file mode 100755
index 0000000..fa2f2b0
--- /dev/null
+++ b/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/bitmask-install.log
+
+ps aux | grep [b]itmask-helper \
+ && launchctl unload /Library/LaunchDaemons/se.leap.bitmask-helper.plist \
+ && echo `date` ":: $app_name pre-install: unloaded bitmask-helper." >> $LOG
+echo `date` ":: $app_name pre-install: ok." >> $LOG
+exit 0