Révision 49 bin/enable-replica
enable-replica (revision 49) | ||
---|---|---|
4 | 4 |
DIR_CONF_REPLICA="/opt/gZFS/replicas/" |
5 | 5 |
DIR_CRON="/etc/cron.d/" |
6 | 6 |
BIN_ZFS_REPLICA="/sbin/zfs-replica" |
7 |
BINZFS="/sbin/zfs" |
|
8 |
BINZPOOL="/sbin/zpool" |
|
7 | 9 |
|
8 | 10 |
# TODO: traduire les msg |
9 | 11 |
|
... | ... | |
43 | 45 |
} |
44 | 46 |
|
45 | 47 |
function interactive { |
46 |
zfs list
|
|
48 |
$BINZFS list
|
|
47 | 49 |
echo "*** Select the ZFS volume/filesystem to replicate : ***" |
48 | 50 |
|
49 | 51 |
while read inputline |
... | ... | |
67 | 69 |
done |
68 | 70 |
if [ "$inputConfirm" = "y" ] |
69 | 71 |
then |
70 |
zfs list $volfs
|
|
72 |
$BINZFS list $volfs
|
|
71 | 73 |
if [ $? -eq 0 ] |
72 | 74 |
then |
73 | 75 |
echo "*** The ZFS volume/filesystem selected $volfs exists ***" |
Formats disponibles : Unified diff