mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 00:50:32 +00:00
update
This commit is contained in:
parent
eebdf2cdc0
commit
3b50de3715
2 changed files with 11 additions and 1 deletions
|
@ -39,7 +39,7 @@ class MicroweberComposerClientHelper
|
|||
public function getMicroweberDownloaderInstance()
|
||||
{
|
||||
$coreDownloader = new MicroweberDownloader();
|
||||
|
||||
|
||||
if (setting('microweber.update_app_channel') == 'beta') {
|
||||
$coreDownloader->setReleaseSource(MicroweberDownloader::DEV_RELEASE);
|
||||
} else {
|
||||
|
|
|
@ -16,6 +16,7 @@ use Illuminate\Console\Command;
|
|||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Str;
|
||||
use function Symfony\Component\String\s;
|
||||
|
||||
class RunRepair extends Command
|
||||
{
|
||||
|
@ -80,6 +81,15 @@ class RunRepair extends Command
|
|||
{
|
||||
$this->info('Fix phpMyAdmin');
|
||||
|
||||
// Download PHPMyAdmin
|
||||
shell_exec('mkdir -p /usr/share/phpmyadmin');
|
||||
shell_exec('rm -rf /usr/share/phpmyadmin/*');
|
||||
shell_exec('wget https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.zip -O /tmp/phpMyAdmin-5.2.1-all-languages.zip');
|
||||
shell_exec('unzip /tmp/phpMyAdmin-5.2.1-all-languages.zip -d /usr/share/phpmyadmin');
|
||||
shell_exec('mv /usr/share/phpmyadmin/phpMyAdmin-5.2.1-all-languages/* /usr/share/phpmyadmin');
|
||||
shell_exec('rm -rf /usr/share/phpmyadmin/phpMyAdmin-5.2.1-all-languages');
|
||||
shell_exec('rm -f /tmp/phpMyAdmin-5.2.1-all-languages.zip');
|
||||
|
||||
$ssoContent = file_get_contents('/usr/local/phyre/web/server/phpmyadmin/phyre-sso.php.dist');
|
||||
if ($ssoContent) {
|
||||
file_put_contents('/usr/share/phpmyadmin/phyre-sso.php', $ssoContent);
|
||||
|
|
Loading…
Reference in a new issue