Update Domain.php

This commit is contained in:
Bozhidar 2024-05-14 15:19:06 +03:00
parent eedc2e201a
commit aad5b8b77a

View file

@ -75,8 +75,7 @@ class Domain extends Model
$model->domain_public = $model->domain_root.'/public_html';
$model->home_root = '/home/'.$findHostingSubscription->user;
}
$model->save();
$model->saveQuietly();
$model->configureVirtualHost(true);
@ -86,6 +85,8 @@ class Domain extends Model
static::saved(function ($model) {
$model->configureVirtualHost(true);
$apacheBuild = new ApacheBuild();
$apacheBuild->build();
@ -146,7 +147,7 @@ class Domain extends Model
if ($this->is_installed_default_app_template == null) {
$this->is_installed_default_app_template = 1;
$this->save();
$this->saveQuietly();
if ($this->server_application_type == 'apache_php') {
if (!is_file($this->domain_public . '/index.php')) {
$indexContent = view('actions.samples.apache.php.app-php-sample')->render();