summaryrefslogtreecommitdiff
path: root/pkg/osx/scripts-riseupvpn/preinstall
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-03-05 17:55:29 +0100
committerKali Kaneko <kali@leap.se>2018-03-22 17:47:07 +0100
commit9ee4859558b868f01012c39dd98bf292d64e09f0 (patch)
treef4a96f62fb5bdd5da0b343ac0912866effc2184c /pkg/osx/scripts-riseupvpn/preinstall
parent176035bc57d22f2e7e879331b84f8d8afa232e0d (diff)
[pkg] minor adjustments for riseupvpn osx bundle
- duplicate the scripts folder for riseupvpn - fix renaming of helper - set openvpn path for riseupvpn
Diffstat (limited to 'pkg/osx/scripts-riseupvpn/preinstall')
-rwxr-xr-xpkg/osx/scripts-riseupvpn/preinstall12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/osx/scripts-riseupvpn/preinstall b/pkg/osx/scripts-riseupvpn/preinstall
new file mode 100755
index 00000000..1ae68f9c
--- /dev/null
+++ b/pkg/osx/scripts-riseupvpn/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