From 3e89086e45669de82c4005e11ded1ce8f60a1bc3 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Sat, 23 Jan 2021 17:04:01 -0500 Subject: Add username hint for permissions during install (#3373) The username is retrieved by 2 different means to support different configurations and architectures. If there is no way to find the username, the "unknown" string is displayed instead. See #2758 --- app/install.php | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'app/install.php') diff --git a/app/install.php b/app/install.php index cfd47910a..286e7cc69 100644 --- a/app/install.php +++ b/app/install.php @@ -363,17 +363,35 @@ function printStep0() { } function printStep1Template($key, $value, $messageParams = []) { - $message = _t("install.check.{$key}.{$value}", ...$messageParams); if ('ok' === $value) { + $message = _t("install.check.{$key}.ok", ...$messageParams); ?>

@@ -388,11 +406,11 @@ function printStep1() { printStep1Template('xml', $res['xml']); printStep1Template('mbstring', $res['mbstring']); printStep1Template('fileinfo', $res['fileinfo']); - printStep1Template('data', $res['data'], [DATA_PATH]); - printStep1Template('cache', $res['cache'], [CACHE_PATH]); - printStep1Template('tmp', $res['tmp'], [TMP_PATH]); - printStep1Template('users', $res['users'], [USERS_PATH]); - printStep1Template('favicons', $res['favicons'], [DATA_PATH . '/favicons']); + printStep1Template('data', $res['data'], [DATA_PATH, $processUsername]); + printStep1Template('cache', $res['cache'], [CACHE_PATH, $processUsername]); + printStep1Template('tmp', $res['tmp'], [TMP_PATH, $processUsername]); + printStep1Template('users', $res['users'], [USERS_PATH, $processUsername]); + printStep1Template('favicons', $res['favicons'], [DATA_PATH . '/favicons', $processUsername]); printStep1Template('http_referer', $res['http_referer']); ?> -- cgit v1.2.3