git-svn-id: http://code.autistici.org/svn/backupninja/trunk@325
758a04ac-41e6-0310-8a23-
8373a73cc35d
. init_vservers: test in a stricter way the real vservers availability
. init_vservers: canonicalize VROOTDIR (since duplicity et al.
don't follow symlinks)
+ . init_vservers: warn if vservers are enabled but no vserver is found
known bugs:
easydialog:
. formDisplay does not return exit status.
return
fi
found_vservers=`ls $VROOTDIR | grep -E -v "lost+found|ARCHIVES" | tr "\n" " "`
- [ -n "$found_vservers" ] || return
+ if [ -z "$found_vservers" ]; then
+ `if [ "$arg" = nodialog ]; then echo warning; else echo "msgBox warning"; fi` \
+ "vservers enabled in $conffile, but no vserver was found in $VROOTDIR.";
+ return
+ fi
vservers_are_available=yes
fi
}