This commit is contained in:
Bozhidar Slaveykov 2024-04-01 12:04:47 +03:00
parent 1fc8382a16
commit f1fb4a67b4
4 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ class Website extends Model
static::creating(function ($model) {
$createWebsite = ShellApi::callBin('website-create', [
$createWebsite = ShellApi::callBin('nginx-website-create', [
$model->domain,
'bobkata'
]);
@ -41,7 +41,7 @@ class Website extends Model
});
static::deleting(function ($model) {
$deleteWebsite = ShellApi::callBin('website-delete', [
$deleteWebsite = ShellApi::callBin('nginx-website-delete', [
$model->domain
]);
if (empty($deleteWebsite)) {
@ -57,7 +57,7 @@ class Website extends Model
public function getRows()
{
$websitesList = ShellApi::callBin('websites-list');
$websitesList = ShellApi::callBin('nginx-websites-list');
$rows = [];
if (!empty($websitesList)) {