sort out open db placements in routes and re-arrange tar params to avoid warning in logs

This commit is contained in:
Brian Read 2025-02-25 12:22:52 +00:00
parent d179b06f69
commit 0fd7137edd

View File

@ -32,7 +32,7 @@ use esmith::util;
use esmith::lockfile; use esmith::lockfile;
use esmith::BlockDevices; use esmith::BlockDevices;
use constant DEBUG => $ENV{MOJO_SMANAGER_DEBUG} || 0; use constant DEBUG => $ENV{MOJO_SMANAGER_DEBUG} || 0;
#our $cdb = esmith::ConfigDB->open || die "Couldn't open config db"; #our $cdb = esmith::ConfigDB->open || die "Couldn't open config db"; #remove as cached gives problems
#our $adb = esmith::AccountsDB->open || die "Couldn't open accounts db"; #our $adb = esmith::AccountsDB->open || die "Couldn't open accounts db";
#our $rdb = esmith::ConfigDB->open('/etc/e-smith/restore') || die "Couldn't open restore db"; #our $rdb = esmith::ConfigDB->open('/etc/e-smith/restore') || die "Couldn't open restore db";
my ($cdb,$adb,$rdb); my ($cdb,$adb,$rdb);
@ -2020,4 +2020,4 @@ sub vmount {
return (qx(/bin/mount -t nfs -o nolock,timeo=30,retrans=1,retry=0 "$host:/$share" $mountdir 2>&1)); return (qx(/bin/mount -t nfs -o nolock,timeo=30,retrans=1,retry=0 "$host:/$share" $mountdir 2>&1));
} }
} ## end sub vmount } ## end sub vmount
1; 1;