diff options
author | Kali Kaneko <kali@leap.se> | 2018-07-04 01:29:39 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2018-07-07 04:54:45 +0200 |
commit | f81d41682ec26c489264351679924fae76884a3d (patch) | |
tree | 9a91fcf7f0cc8baa75d42e22b72f753327516395 /osx/scripts/preinstall | |
parent | 447c6554a4ecb120c407459bb4a173e414ce25e2 (diff) |
[pkg] import more osx boilerplate
Diffstat (limited to 'osx/scripts/preinstall')
-rwxr-xr-x | osx/scripts/preinstall | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/osx/scripts/preinstall b/osx/scripts/preinstall new file mode 100755 index 0000000..1ae68f9 --- /dev/null +++ b/osx/scripts/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` ":: Bitmask pre-install: unloaded bitmask-helper." >> $LOG +echo `date` ":: Bitmask pre-install: ok." >> $LOG +exit 0 |