Révision 49 bin/disable-replica

disable-replica (revision 49)
4 4
DIR_CRON="/etc/cron.d/"
5 5
DIR_CONF_REPLICA="/opt/gZFS/replicas/"
6 6
BIN_ZFS_REPLICA="/sbin/zfs-replica"
7
BINZFS="/sbin/zfs"
8
BINZPOOL="/sbin/zpool"
7 9

  
8
# TODO: traduire les msg
9 10

  
10 11
function usage {
11 12
  echo "Usage :" 1>&2
......
34 35

  
35 36
function interactive {
36 37

  
37
/sbin/zfs list
38
$BINZFS list
38 39
echo "*** Select the ZFS volume/filesystem Name to replicate :"
39 40
while read inputline
40 41
do
41 42
   if [ "$inputline" != "" ]
42 43
   then  
43
       /sbin/zfs list $inputline
44
       $BINZFS list $inputline
44 45
      if [ $? -eq 0 ]
45 46
      then
46 47
         FILE_NAME=$(echo "replica-"${inputline//\//-})

Formats disponibles : Unified diff