From 0fb7586146389df5e4503254217a8c3dcdb0573b Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sat, 12 Jun 2010 23:12:33 +0200 Subject: rybackup: recover from early eCryptfs mounts --- rybackup.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'rybackup.py') diff --git a/rybackup.py b/rybackup.py index a5ddf91..47dbb2f 100755 --- a/rybackup.py +++ b/rybackup.py @@ -126,13 +126,13 @@ def sync(arg): # Managing mount points def mount(action): - if bak['efs']: - # Exit with EAGAIN if eCryptfs is mounted - if call("%s -qs ecryptfs %s" - % (bin['grep'], files['mounts']), shell=True) == 0: - raise SystemExit(11) - if action == "mount": + if bak['efs']: + # Exit with EAGAIN if eCryptfs is mounted + if call("%s -qs ecryptfs %s" + % (bin['grep'], files['mounts']), shell=True) == 0: + raise SystemExit(11) + # Include the export for NFS if rmt['fst'] == "-t nfs": rmt['dev'] = "%s:%s" % (rmt['dev'], rmt['dst']) -- cgit v1.2.3