You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @copyright Copyright (c) 2020 Daniel Kesselberg <mail@danielkesselberg.de>
7
+
*
8
+
* @author Daniel Kesselberg <mail@danielkesselberg.de>
9
+
*
10
+
* @license GNU AGPL version 3 or any later version
11
+
*
12
+
* This program is free software: you can redistribute it and/or modify
13
+
* it under the terms of the GNU Affero General Public License as
14
+
* published by the Free Software Foundation, either version 3 of the
15
+
* License, or (at your option) any later version.
16
+
*
17
+
* This program is distributed in the hope that it will be useful,
18
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
+
* GNU Affero General Public License for more details.
21
+
*
22
+
* You should have received a copy of the GNU Affero General Public License
23
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
24
+
*
25
+
*/
26
+
namespaceOCA\Settings\SetupChecks;
27
+
28
+
useOCP\IL10N;
29
+
useOCP\IURLGenerator;
30
+
useOCP\SetupCheck\ISetupCheck;
31
+
useOCP\SetupCheck\SetupResult;
32
+
33
+
class PhpGetEnv implements ISetupCheck {
34
+
publicfunction__construct(
35
+
privateIL10N$l10n,
36
+
privateIURLGenerator$urlGenerator,
37
+
) {
38
+
}
39
+
40
+
publicfunctiongetName(): string {
41
+
return$this->l10n->t('PHP getenv');
42
+
}
43
+
44
+
publicfunctiongetCategory(): string {
45
+
return'php';
46
+
}
47
+
48
+
publicfunctionrun(): SetupResult {
49
+
if (!empty(getenv('PATH'))) {
50
+
return SetupResult::success();
51
+
} else {
52
+
return SetupResult::warning($this->l10n->t('PHP does not seem to be setup properly to query system environment variables. The test with getenv("PATH") only returns an empty response.'), $this->urlGenerator->linkToDocs('admin-php-fpm'));
Copy file name to clipboardexpand all lines: core/js/setupchecks.js
-9
Original file line number
Diff line number
Diff line change
@@ -180,15 +180,6 @@
180
180
varafterCall=function(data,statusText,xhr){
181
181
varmessages=[];
182
182
if(xhr.status===200&&data){
183
-
if(!data.isGetenvServerWorking){
184
-
messages.push({
185
-
msg: t('core','PHP does not seem to be setup properly to query system environment variables. The test with getenv("PATH") only returns an empty response.')+' '+
186
-
t('core','Please check the {linkstart}installation documentation ↗{linkend} for PHP configuration notes and the PHP configuration of your server, especially when using php-fpm.')
msg: t('core','The read-only config has been enabled. This prevents setting some configurations via the web-interface. Furthermore, the file needs to be made writable manually for every update.'),
0 commit comments