Révision 46 bin/disable-replica

disable-replica (revision 46)
35 35
function interactive {
36 36

  
37 37
/sbin/zfs list
38
echo "*** Nom du volume pour desactiver la replication :"
38
echo "*** Select the ZFS volume/filesystem Name to replicate :"
39 39
while read inputline
40 40
do
41 41
   if [ "$inputline" != "" ]
......
49 49
            /bin/rm -f $DIR_CONF_REPLICA$FILE_NAME.conf
50 50
            if [ $? -eq 0 ]
51 51
            then
52
               echo "*** Suppression du fichier conf $DIR_CONF_REPLICA$FILE_NAME.conf [OK]"
52
               echo "*** Remove configuration file $DIR_CONF_REPLICA$FILE_NAME.conf [OK]"
53 53
            else
54
               echo "/!\\ Suppression du fichier $DIR_CONF_REPLICA$FILE_NAME.conf [ERROR] /!\\"
54
               echo "/!\\ Remove configuration file $DIR_CONF_REPLICA$FILE_NAME.conf [ERROR] /!\\"
55 55
               exit
56 56
            fi
57 57
         else
58
            echo "*** Le fichier de conf $DIR_CONF_REPLICA$FILE_NAME.conf n'existe pas"
58
            echo "*** The configuration file $DIR_CONF_REPLICA$FILE_NAME.conf does not exist"
59 59
         fi
60 60

  
61 61
         if [ -e $DIR_CRON$FILE_NAME ]
......
63 63
            /bin/rm $DIR_CRON$FILE_NAME
64 64
            if [ $? -eq 0 ]
65 65
            then
66
               echo "*** Suppression du fichier de cron $DIR_CRON$FILE_NAME [OK]"
66
               echo "*** Remove cron file $DIR_CRON$FILE_NAME [OK]"
67 67
               break
68 68
            else
69
               echo "/!\\ Suppression du fichier de cron $DIR_CRON$FILE_NAME /!\\"
69
               echo "/!\\ Remove cron file $DIR_CRON$FILE_NAME [ERROR] /!\\"
70 70
               exit
71 71
            fi
72 72
         else
73
            echo "*** Le fichier cron $DIR_CRON$FILE_NAME n'existe pas"
73
            echo "*** The cron file $DIR_CRON$FILE_NAME does not exist"
74 74
            break
75 75
         fi
76 76
      fi
77 77
   fi
78
   echo "*** Nom du volume pour desactiver la replication :"
78
   echo "*** Select the ZFS volume/filesystem Name to replicate :"
79 79
done
80 80
exit 0
81 81
}

Formats disponibles : Unified diff