[debian-lan-devel] [SCM] Debian-LAN development and packaging branch, master, updated. 0.6-44-gcddc730

Andreas B. Mundt andi at debian.org
Thu Sep 20 12:17:57 UTC 2012


The following commit has been merged in the master branch:
commit d9bfa8444d5868ecc5197f7bf9e3e5d9b83a66e9
Author: Andreas B. Mundt <andi at debian.org>
Date:   Thu Sep 20 10:48:07 2012 +0200

    Fix backup:  Do not fail when backup directory is already mounted.

diff --git a/fai/config/files/etc/cron.daily/backup/SERVER_A b/fai/config/files/etc/cron.daily/backup/SERVER_A
index 46e369f..71980ea 100755
--- a/fai/config/files/etc/cron.daily/backup/SERVER_A
+++ b/fai/config/files/etc/cron.daily/backup/SERVER_A
@@ -12,7 +12,7 @@ MISC_DIR="${DIR}/tmp/misc/"
 # from dirvish:
 mount_check() {
     mntout=`tempfile -p mount`
-    mount $1 >$mntout 2>&1
+    mount $1 >$mntout 2>&1 || true
     if [ ! -d $1/lost+found ]; then # only works for "real" filesystems :-)
                                         # (Yes, I know about reiserfs.)
         echo "'mount $1' failed?! Stopping."

-- 
Debian-LAN development and packaging



More information about the debian-lan-devel mailing list