diff options
| author | Nozomi Anzai | 2016-02-02 01:50:33 +0000 |
|---|---|---|
| committer | Nozomi Anzai | 2016-02-02 01:50:33 +0000 |
| commit | b76cc56478099dd516a33dcb40ceb5c345af0785 (patch) | |
| tree | 1a308e1827c59e678318b9e580fdf67658695e0d | |
| parent | 8b5594785cf4c3d16cf4b06cb81d6f9ccbd066e7 (diff) | |
Show the path to .pcppass
| -rw-r--r-- | install/checkParameter.php | 4 |
1 files 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']) { |
