summaryrefslogtreecommitdiff
path: root/rybackup.py
diff options
context:
space:
mode:
Diffstat (limited to 'rybackup.py')
-rwxr-xr-xrybackup.py12
1 files changed, 6 insertions, 6 deletions
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'])