From ee543ab64b48ccb870a82951a4eaf8c0217edca3 Mon Sep 17 00:00:00 2001 From: Digimer Date: Thu, 12 Jul 2018 21:30:13 -0400 Subject: [PATCH] * Re-fixed postgresql daemon path. Signed-off-by: Digimer --- tools/anvil-prep-database | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/anvil-prep-database b/tools/anvil-prep-database index 2a513cf9..19093b81 100755 --- a/tools/anvil-prep-database +++ b/tools/anvil-prep-database @@ -57,7 +57,7 @@ if (not $local_uuid) if ($local_uuid) { # Start checks - my $running = $anvil->System->check_daemon({daemon => $anvil->data->{service}{postgresql}}); + my $running = $anvil->System->check_daemon({daemon => $anvil->data->{sys}{service}{postgresql}}); $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 3, list => { running => $running }}); if ($running eq "2") { @@ -189,7 +189,7 @@ if ($local_uuid) } # Start the daemon. '0' = started, anything else is a problem. - my $return_code = $anvil->System->start_daemon({daemon => $anvil->data->{service}{postgresql}}); + my $return_code = $anvil->System->start_daemon({daemon => $anvil->data->{sys}{service}{postgresql}}); $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { return_code => $return_code }}); if ($return_code eq "0") { @@ -197,7 +197,7 @@ if ($local_uuid) $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, key => "log_0059"}); # Make sure it is enabled on boot. - my $return_code = $anvil->System->enable_daemon({daemon => $anvil->data->{service}{postgresql}}); + my $return_code = $anvil->System->enable_daemon({daemon => $anvil->data->{sys}{service}{postgresql}}); $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { return_code => $return_code }}); } else