]> git.datanom.net - omvzfs.git/blob - openmediavault-zfs/debian/postrm
Made it optional to use /dev/disk/by-path
[omvzfs.git] / openmediavault-zfs / debian / postrm
1 #!/bin/sh
2
3 set -e
4
5 . /etc/default/openmediavault
6 . /usr/share/openmediavault/scripts/helper-functions
7
8 CONFIG="/config/services/zfs"
9
10 case "$1" in
11 purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
12
13 if omv_config_exists $CONFIG; then
14 echo "Deleting Configuration"
15 omv_config_delete $CONFIG;
16 fi
17
18 if ! omv_config_exists $CONFIG; then
19 echo "Configuration Deleted"
20 fi
21 ;;
22
23 *)
24 echo "postrm called with unknown argument \`$1'" >&2
25 exit 1
26 ;;
27 esac
28
29 #DEBHELPER#
30
31 exit 0
This page took 0.078113 seconds and 6 git commands to generate.