]> git.datanom.net - omvzfs.git/blame - openmediavault-zfs/debian/postinst
Made it optional to use /dev/disk/by-path
[omvzfs.git] / openmediavault-zfs / debian / postinst
CommitLineData
8a2223a4
MR
1#!/bin/sh
2
3set -e
4
5. /etc/default/openmediavault
6. /usr/share/openmediavault/scripts/helper-functions
7
8
9case "$1" in
10 configure)
11 if ! omv_config_exists "/config/services/zfs"; then
12 echo "Initialize configuration"
13 object="<enable>0</enable>"
14 object="${object}<numberfield1>827</numberfield1>"
15 omv_config_add_element "/config/services" "zfs" "${object}" true
16 fi
17 ;;
18
19 abort-upgrade|abort-remove|abort-deconfigure)
20 ;;
21
22 *)
23 echo "postinst called with unknown argument \`$1'" >&2
24 exit 1
25 ;;
26esac
27
28#DEBHELPER#
29
30exit 0
This page took 0.035765 seconds and 5 git commands to generate.