This commit is contained in:
Bozhidar Slaveykov 2024-04-03 19:27:23 +03:00
parent cf8fbfec17
commit 02f22e0037
2 changed files with 5 additions and 5 deletions

View file

@ -27,7 +27,7 @@ class LetsEncryptServiceProvider extends ServiceProvider
$this->registerViews();
$this->loadMigrationsFrom(module_path($this->moduleName, 'Database/migrations'));
Event::listen(HostingAccountIsCreated::class,HostingAccountIsCreatedListener::class);
// Event::listen(HostingAccountIsCreated::class,HostingAccountIsCreatedListener::class);
}
/**

View file

@ -23,7 +23,7 @@ class HostingAccountIsCreatedListener
{
$findWebsite = \App\Models\Website::where('id', $event->model->id)->first();
ShellApi::exec('chmod 777 ' . $findWebsite->domain_public);
$phyreShellExecutor = new \Modules\Microweber\Shell\Adapters\PhyreShellExecutor();
@ -39,15 +39,15 @@ class HostingAccountIsCreatedListener
$install->setLanguage('bg');
$install->setTemplate('shopmag');
$install->setStandaloneInstallation();
// $install->setStandaloneInstallation();
$install->setSymlinkInstallation();
$install->setDatabaseDriver('sqlite');
$install->setAdminEmail('bojotjo@abv.bg');
$install->setAdminUsername('bojotjo');
$install->setAdminPassword('bojotjo');
$install->run();
$status = $install->run();
}