forked from evolix/evobackup
Ajoute support pour findmnt de Debian 8
This commit is contained in:
parent
417876cbba
commit
36f3cccc92
|
@ -16,7 +16,7 @@ output=""
|
||||||
|
|
||||||
# Verify backup partition is mounted and writable
|
# Verify backup partition is mounted and writable
|
||||||
|
|
||||||
findmnt --mountpoint "${BACKUP_PARTITION}" -O rw > /dev/null
|
findmnt -O rw --target "${BACKUP_PARTITION}" > /dev/null
|
||||||
if [ "$?" -ne 0 ]; then
|
if [ "$?" -ne 0 ]; then
|
||||||
nb_crit=$((nb_crit + 1))
|
nb_crit=$((nb_crit + 1))
|
||||||
output="${output}CRITICAL - Backup disk \`/backup' is not mounted (or read-only) !\n"
|
output="${output}CRITICAL - Backup disk \`/backup' is not mounted (or read-only) !\n"
|
||||||
|
|
Loading…
Reference in a new issue