]> git.datanom.net - omvzfs.git/blame - openmediavault-zfs/debian/postrm
Made it optional to use /dev/disk/by-path
[omvzfs.git] / openmediavault-zfs / debian / postrm
CommitLineData
8a2223a4
MR
1#!/bin/sh
2
3set -e
4
5. /etc/default/openmediavault
6. /usr/share/openmediavault/scripts/helper-functions
7
8CONFIG="/config/services/zfs"
9
10case "$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 ;;
27esac
28
29#DEBHELPER#
30
31exit 0
This page took 0.04326 seconds and 5 git commands to generate.