summaryrefslogtreecommitdiff
path: root/osx/scripts/preinstall
blob: 47a08123c4b1de0189c991c182c6e7f67093c459 (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: ok." >> $LOG
exit 0