Skip to content

Commit a63b2e6

Browse files
Feature/nextcloud update (hestiacp#3725)
* Fix setup failure/req. PHP +8 * Bump min mem to 512M * Run Pretier --------- Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
1 parent e5b8cfb commit a63b2e6

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

web/src/app/WebApp/Installers/Nextcloud/NextcloudSetup.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class NextcloudSetup extends BaseSetup {
2929
"template" => "owncloud",
3030
],
3131
"php" => [
32-
"supported" => ["7.4", "8.0", "8.1"],
32+
"supported" => ["8.0", "8.1", "8.2"],
3333
],
3434
],
3535
];
@@ -69,6 +69,17 @@ public function install(array $options = null): bool {
6969
],
7070
$status,
7171
);
72+
73+
// Bump minimum memory limit to 512M
74+
$result = null;
75+
$file = $this->getDocRoot(".user.ini");
76+
$this->appcontext->runUser("v-open-fs-file", [$file], $result);
77+
array_push($result->raw, "memory_limit=512M");
78+
$tmp = $this->saveTempFile(implode("\r\n", $result->raw));
79+
if (!$this->appcontext->runUser("v-move-fs-file", [$tmp, $file], $result)) {
80+
throw new \Exception("Error updating file in: " . $tmp . " " . $result->text);
81+
}
82+
7283
return $status->code === 0;
7384
}
7485
}

0 commit comments

Comments
 (0)