From f1fb4a67b4c6ddfd927568d7d39a546ab89d88c8 Mon Sep 17 00:00:00 2001 From: Bozhidar Slaveykov Date: Mon, 1 Apr 2024 12:04:47 +0300 Subject: [PATCH] update --- bin/{website-create-nginx.sh => nginx-website-create.sh} | 0 bin/{website-delete-nginx.sh => nginx-website-delete.sh} | 0 bin/{websites-list-nginx.sh => nginx-websites-list.sh} | 0 web/app/Models/Website.php | 6 +++--- 4 files changed, 3 insertions(+), 3 deletions(-) rename bin/{website-create-nginx.sh => nginx-website-create.sh} (100%) rename bin/{website-delete-nginx.sh => nginx-website-delete.sh} (100%) rename bin/{websites-list-nginx.sh => nginx-websites-list.sh} (100%) diff --git a/bin/website-create-nginx.sh b/bin/nginx-website-create.sh similarity index 100% rename from bin/website-create-nginx.sh rename to bin/nginx-website-create.sh diff --git a/bin/website-delete-nginx.sh b/bin/nginx-website-delete.sh similarity index 100% rename from bin/website-delete-nginx.sh rename to bin/nginx-website-delete.sh diff --git a/bin/websites-list-nginx.sh b/bin/nginx-websites-list.sh similarity index 100% rename from bin/websites-list-nginx.sh rename to bin/nginx-websites-list.sh diff --git a/web/app/Models/Website.php b/web/app/Models/Website.php index db1efa7..37ea74c 100644 --- a/web/app/Models/Website.php +++ b/web/app/Models/Website.php @@ -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)) {