Révision 49 bin/enable-snapshot

enable-snapshot (revision 49)
4 4
DIR_CRON="/etc/cron.d/"
5 5
DIR_CONF_SNAPSHOT="/opt/gZFS/snapshots/"
6 6
BIN_ZFS_SNAPSHOT="/sbin/zfs-snapshot"
7
BINZFS="/sbin/zfs"
8
BINZPOOL="/sbin/zpool"
7 9

  
8
# TODO: traduire les msg
9

  
10 10
function usage {
11 11
  echo "Usage : $0 options" 1>&2
12 12
  echo "OPTIONS :" 1>&2
......
38 38
}
39 39

  
40 40
function interactive {
41
/sbin/zfs list
41
$BINZFS list
42 42
echo "*** Select the ZFS volume/filesystem : ***"
43 43

  
44 44
while read inputline
......
63 63

  
64 64
      if [ "$inputConfirm" = "y" ]
65 65
      then
66
         /sbin/zfs list $NAME_VOL
66
         $BINZFS list $NAME_VOL
67 67
         if [ $? -eq 0 ]
68 68
         then
69 69
            echo "*** The ZFS volume/filesystem $NAME_VOL exists ***"

Formats disponibles : Unified diff