diff --git a/tools/anvil-daemon b/tools/anvil-daemon index f7af9765..c2cec9ec 100755 --- a/tools/anvil-daemon +++ b/tools/anvil-daemon @@ -545,7 +545,7 @@ sub handle_periodic_tasks update_state_file($anvil); # Check shared files. - check_files($anvils); + check_files($anvil); # Check mail server config. my $problem = $anvil->Email->check_config({debug => 3}); diff --git a/tools/striker-prep-database b/tools/striker-prep-database index f049ec5b..f39db754 100755 --- a/tools/striker-prep-database +++ b/tools/striker-prep-database @@ -462,7 +462,7 @@ if ($local_uuid) # In some cases, the database won't allow connections to the admin user. To deal with this, we'll # call stop->start on the daemon (reload doesn't fix it). - my $return_code = $anvil->System->stop_daemon({daemon => "postgresql"}); + $return_code = $anvil->System->stop_daemon({daemon => "postgresql"}); $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { return_code => $return_code }}); $return_code = $anvil->System->start_daemon({daemon => "postgresql"});