3 echo "Bacula file daemon @BACULA_VERSION@ uninstaller"
6 echo "* Bacula startup item... "
7 if [ -f /Library/LaunchDaemons/org.bacula.bacula-fd.plist ]; then
8 sudo launchctl unload /Library/LaunchDaemons/org.bacula.bacula-fd.plist
9 sudo rm /Library/LaunchDaemons/org.bacula.bacula-fd.plist
10 echo " + removed successfully"
12 echo " - not found, nothing to remove"
15 echo "* Bacula file daemon... "
16 if [ -d "/usr/local/bacula-@BACULA_VERSION@" ]; then
17 sudo rm -r "/usr/local/bacula-@BACULA_VERSION@"
18 echo " + removed successfully"
20 echo " - not found, nothing to remove"
23 echo "* Installer receipt... "
24 if [ -d "/Library/Receipts/Bacula File Daemon @BACULA_VERSION@.pkg" ]; then
25 sudo rm -r "/Library/Receipts/Bacula File Daemon @BACULA_VERSION@.pkg"
26 echo " + removed successfully"
28 echo " - not found, nothing to remove"