summaryrefslogtreecommitdiff
path: root/osx/scripts/postinstall
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-07-04 01:29:39 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2018-07-07 04:54:45 +0200
commitf81d41682ec26c489264351679924fae76884a3d (patch)
tree9a91fcf7f0cc8baa75d42e22b72f753327516395 /osx/scripts/postinstall
parent447c6554a4ecb120c407459bb4a173e414ce25e2 (diff)
[pkg] import more osx boilerplate
Diffstat (limited to 'osx/scripts/postinstall')
-rwxr-xr-xosx/scripts/postinstall13
1 files changed, 13 insertions, 0 deletions
diff --git a/osx/scripts/postinstall b/osx/scripts/postinstall
new file mode 100755
index 0000000..9343039
--- /dev/null
+++ b/osx/scripts/postinstall
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Bitmask Post-Instalation script
+# (c) LEAP Encryption access Project
+# We copy the bitmask-helper plist to the LaunchDaemons folder, and load the bitmask-helper that runs as root.
+
+LOG=/tmp/bitmask-install.log
+
+chmod +x /Applications/RiseupVPN.app/Contents/Resources/bitmask-helper/bitmask-helper
+cp se.leap.bitmask-helper.plist /Library/LaunchDaemons/ \
+ && echo `date` ":: Bitmask post-install: copied bitmask-helper Plist." >> $LOG
+launchctl load /Library/LaunchDaemons/se.leap.bitmask-helper.plist && echo `date` ":: Bitmask post-install: loaded bitmask-helper." >> $LOG
+echo `date` ":: Bitmask post-install: ok." >> $LOG
+exit 0