mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 04:07:35 +02:00
Show error message if Grav is symlinked, and stop the upgrade process
This commit is contained in:
@@ -695,6 +695,11 @@ class AdminController
|
||||
return;
|
||||
}
|
||||
|
||||
if (is_link(ROOT_DIR . 'index.php')) {
|
||||
$this->admin->json_response = ['status' => 'error', 'message' => 'Cannot upgrade: Grav is symlinked. Please upgrade manually'];
|
||||
return false;
|
||||
}
|
||||
|
||||
$result = \Grav\Plugin\Admin\Gpm::selfupgrade();
|
||||
|
||||
if ($result) {
|
||||
|
||||
Reference in New Issue
Block a user