marsadm: relax precondition for create-resource

This commit is contained in:
Thomas Schoebel-Theuer 2013-07-03 15:01:28 +02:00
parent 62e2f5944b
commit 295b0f4ada
1 changed files with 1 additions and 1 deletions

View File

@ -843,7 +843,7 @@ sub create_res {
my $resdir = "$mars/resource-$res"; my $resdir = "$mars/resource-$res";
if ($create) { if ($create) {
ldie "resource directory '$res' already exists; you may override this via --force\n" if (!$force && -d $resdir); ldie "resource directory '$res' already exists; you may override this via --force\n" if (!$force && -d $resdir);
ldie "resource directory '$res' has some contents -- remove by hand if you are sure that you really know what you are doing.\n" if glob("$resdir/*.status"); ldie "resource directory '$res' has some contents -- remove by hand if you are sure that you really know what you are doing, or give --force.\n" if (!$force && glob("$resdir/*.status"));
lprint "creating new resource '$res'\n"; lprint "creating new resource '$res'\n";
} else { } else {
if ( -e "$resdir/connect-$host" || -e "$resdir/data-$host") { if ( -e "$resdir/connect-$host" || -e "$resdir/data-$host") {