Ajoute support pour findmnt de Debian 8
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Mathieu Trossevin 2022-06-06 15:21:16 +02:00
parent 417876cbba
commit 36f3cccc92
Signed by: mtrossevin
GPG key ID: D1DBB7EA828374E9

View file

@ -16,7 +16,7 @@ output=""
# 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
nb_crit=$((nb_crit + 1))
output="${output}CRITICAL - Backup disk \`/backup' is not mounted (or read-only) !\n"