From 542a7a3b8270fa38224e99f26dda46f5c760ae7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Mon, 30 May 2016 12:04:58 +0200 Subject: [PATCH] [fix] Use the classic way to create read-only bind mount in ynh_backup --- data/helpers.d/filesystem | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/helpers.d/filesystem b/data/helpers.d/filesystem index 248a795a9..8a2bd9aff 100644 --- a/data/helpers.d/filesystem +++ b/data/helpers.d/filesystem @@ -35,8 +35,7 @@ ynh_backup() { if sudo mount --rbind "${SRCPATH}" "${DESTPATH}"; then # try to remount destination directory as read-only - sudo mount -o remount,ro "${DESTPATH}" >/dev/null 2>&1 \ - || sudo mount -o remount,ro,bind "${SRCPATH}" "${DESTPATH}" \ + sudo mount -o remount,ro,bind "${SRCPATH}" "${DESTPATH}" \ || true return 0 else