summaryrefslogtreecommitdiff
path: root/osx/template-preinstall
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-preinstall
parent89bb53fe82c048fc322075b67b1bc7048d4fc53d (diff)
[pkg] generate install scripts for helper
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