From d192356c5abeb93ca633d9007844ef3b45eecc10 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Mon, 17 Jul 2023 16:54:11 -0400 Subject: [PATCH] fix(tools): remove unused database connection in manage tunnel --- tools/anvil-manage-tunnel | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tools/anvil-manage-tunnel b/tools/anvil-manage-tunnel index b42550cd..3aecf563 100755 --- a/tools/anvil-manage-tunnel +++ b/tools/anvil-manage-tunnel @@ -26,15 +26,6 @@ my $sed = $anvil->data->{path}{exe}{'sed'}; $anvil->Get->switches; -$anvil->Database->connect; -$anvil->Log->entry({ source => $THIS_FILE, line => __LINE__, level => 2, secure => 0, key => "log_0132" }); -if (not $anvil->data->{sys}{database}{connections}) -{ - # No databases, exit. - $anvil->Log->entry({ source => $THIS_FILE, line => __LINE__, level => 0, 'print' => 1, priority => "err", key => "error_0003" }); - $anvil->nice_exit({ exit_code => 1 }); -} - my $connect_child = $anvil->data->{switches}{'child'}; my $switch_debug = $anvil->data->{switches}{'debug'} || 3; my $ssh_ctl_cmd = $anvil->data->{switches}{'ctl-cmd'};