Update RunRepair.php

This commit is contained in:
Bozhidar 2024-09-16 14:12:12 +03:00
parent ffe218b839
commit 7eb01fa7bd

View file

@ -94,6 +94,12 @@ class RunRepair extends Command
if ($ssoContent) {
file_put_contents('/usr/share/phpmyadmin/phyre-sso.php', $ssoContent);
}
$configContent = file_get_contents('/usr/local/phyre/web/server/phpmyadmin/config.inc.php.dist');
if ($configContent) {
file_put_contents('/usr/share/phpmyadmin/config.inc.php', $configContent);
}
$sessionDir = '/usr/local/phyre/data/sessions';
if (!is_dir($sessionDir)) {
shell_exec('mkdir -p ' . $sessionDir);