blob: 377508ce9f3aebecbdc3f1427669738bb144a3d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/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/$applicationName-install.log
chmod +x /Applications/$applicationName.app/Contents/MacOS/bitmask-helper
cp se.leap.bitmask-helper.plist /Library/LaunchDaemons/ \
&& echo `date` ":: $applicationName post-install: copied bitmask-helper Plist." >> $$LOG
launchctl load /Library/LaunchDaemons/se.leap.bitmask-helper.plist && echo `date` ":: $applicationName post-install: loaded bitmask-helper." >> $$LOG
chown admin:wheel /Applications/$applicationName.app/Contents/helper
echo `date` ":: $applicationName post-install: ok." >> $$LOG
exit 0
|