Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2022-01-12 01:45:36 +0300
committerGitHub <noreply@github.com>2022-01-12 01:45:36 +0300
commit170c87c58c8f148385e21e4fbca924f408a405ce (patch)
tree7ae9f98c996f1cb553690cb008bcbe1adcdac6bf /core/Filechecks.php
parent0e5a50e266c70426df0fc92b4ea02483e7bd67de (diff)
Hide commands that don't work on windows (#18604)
Diffstat (limited to 'core/Filechecks.php')
-rw-r--r--core/Filechecks.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/Filechecks.php b/core/Filechecks.php
index 1c0fc049ef..b37b52a582 100644
--- a/core/Filechecks.php
+++ b/core/Filechecks.php
@@ -107,9 +107,13 @@ class Filechecks
{
$realpath = Filesystem::realpath(PIWIK_INCLUDE_PATH . '/');
$message = '';
- $message .= "<br /><code>" . self::getCommandToChangeOwnerOfPiwikFiles() . "</code><br />";
+ if (!SettingsServer::isWindows()) {
+ $message .= "<br /><code>" . self::getCommandToChangeOwnerOfPiwikFiles() . "</code><br />";
+ }
$message .= self::getMakeWritableCommand($realpath);
- $message .= '<code>chmod 755 '.$realpath.'/console</code><br />';
+ if (!SettingsServer::isWindows()) {
+ $message .= '<code>chmod 755 ' . $realpath . '/console</code><br />';
+ }
$message .= 'After you execute these commands (or change permissions via your FTP software), refresh the page and you should be able to use the "Automatic Update" feature.';
return $message;
}