]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/osx/files/uninstall.command.in
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / bacula / platforms / osx / files / uninstall.command.in
1 #!/bin/sh
2
3 echo "Bacula file daemon @BACULA_VERSION@ uninstaller"
4
5 # Remove startup item
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"
11 else
12   echo "  - not found, nothing to remove"
13 fi
14
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"
19 else
20   echo "  - not found, nothing to remove"  
21 fi
22
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"
27 else
28   echo "  - not found, nothing to remove"  
29 fi