Revision 55 bin/disable-snapshot

disable-snapshot (revision 55)
40 40
function interactive {
41 41

  
42 42
$BINZFS list
43
echo "*** Nom du volume pour desactiver les snapshot :"
43
echo "*** Enter a ZFS volume/filesystem name :"
44 44
while read inputline
45 45
do
46 46
   if [ "$inputline" != "" ]
......
54 54
            /bin/rm -f $DIR_CONF_SNAPSHOT$FILE_NAME.conf
55 55
            if [ $? -eq 0 ]
56 56
            then
57
               echo "*** Suppression du fichier conf $DIR_CONF_SNAPSHOT$FILE_NAME.conf [OK]"
57
               echo "*** Remove the configuration file $DIR_CONF_SNAPSHOT$FILE_NAME.conf [OK]"
58 58
            else
59
               echo "/!\\ Suppression du fichier $DIR_CONF_SNAPSHOT$FILE_NAME.conf [ERROR] /!\\"
59
               echo "/!\\ Remove the configuration file  $DIR_CONF_SNAPSHOT$FILE_NAME.conf [ERROR] /!\\"
60 60
               exit
61 61
            fi
62 62
         else
63
            echo "*** Le fichier de conf $DIR_CONF_SNAPSHOT$FILE_NAME.conf n'existe pas"
63
            echo "*** The configuration file $DIR_CONF_SNAPSHOT$FILE_NAME.conf does not exist"
64 64
         fi
65 65

  
66 66
         if [ -e $DIR_CRON$FILE_NAME ]
......
68 68
            /bin/rm $DIR_CRON$FILE_NAME
69 69
            if [ $? -eq 0 ]
70 70
            then
71
               echo "*** Suppression du fichier de cron $DIR_CRON$FILE_NAME [OK]"
71
               echo "*** Remove cron file $DIR_CRON$FILE_NAME [OK]"
72 72
               break
73 73
            else
74
               echo "/!\\ Suppression du fichier de cron $DIR_CRON$FILE_NAME /!\\"
74
               echo "/!\\ Remove cron file $DIR_CRON$FILE_NAME [ERROR] /!\\"
75 75
               exit
76 76
            fi
77 77
         else
78
            echo "*** Le fichier cron $DIR_CRON$FILE_NAME n'existe pas"
78
            echo "*** The cron file $DIR_CRON$FILE_NAME does not exist"
79 79
            break
80 80
         fi
81 81
      fi
82 82
   fi
83
   echo "*** Nom du volume pour desactiver les snapshot :"
83
   echo "*** Enter a ZFS volume/filesystem name :"
84 84
done
85 85
exit 0
86 86
}

Also available in: Unified diff