summaryrefslogtreecommitdiff
path: root/osx/scripts/preinstall
blob: fc18c170e5bb382a7e3aff6e296ba86d63cd958c (plain)
1
2
3
4
5
6
7
8
9
10
11
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` ":: RiseupVPN pre-install: unloaded bitmask-helper." >> $LOG
echo `date` ":: RiseupVPN pre-install: done." >> $LOG
exit 0