From b76cc56478099dd516a33dcb40ceb5c345af0785 Mon Sep 17 00:00:00 2001 From: Nozomi Anzai Date: Tue, 2 Feb 2016 10:50:33 +0900 Subject: [PATCH] Show the path to .pcppass --- install/checkParameter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/checkParameter.php b/install/checkParameter.php index fb19031..e904087 100644 --- a/install/checkParameter.php +++ b/install/checkParameter.php @@ -181,10 +181,10 @@ if (isset($_POST['pcp_hostname']) && $_POST['pcp_hostname']) { $pcp_hostname = _PGPOOL2_PCP_HOSTNAME; } +$proc_user_info = posix_getpwuid(posix_geteuid()); +$pcppass_file = "{$proc_user_info['dir']}/.pcppass"; if (3.5 <= $version) { $msgPcpPassFile = ''; - $proc_user_info = posix_getpwuid(posix_geteuid()); - $pcppass_file = "{$proc_user_info['dir']}/.pcppass"; if (! is_file($pcppass_file)) { $msgPcpPassFile = 'File not found'; } elseif (fileowner($pcppass_file) != $proc_user_info['uid']) { -- 2.39.5