From 3d69fa00d02242b2b27d6e69c36163957d603647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn?= Date: Wed, 5 Aug 2020 16:14:36 +0200 Subject: [PATCH] bugfix domain not longer check tld --- app/Commands/NginxVhostsCommand.php | 2 +- app/Commands/PhpFpmInstallCommand.php | 11 +---------- app/Menus/Styles.php | 0 3 files changed, 2 insertions(+), 11 deletions(-) create mode 100644 app/Menus/Styles.php diff --git a/app/Commands/NginxVhostsCommand.php b/app/Commands/NginxVhostsCommand.php index c7ce50c..f396880 100644 --- a/app/Commands/NginxVhostsCommand.php +++ b/app/Commands/NginxVhostsCommand.php @@ -202,7 +202,7 @@ class NginxVhostsCommand extends Command // add directory for validator to check if file exits $data['index'] = $data['root'].'/'.$data['index']; - $validator = v::key('domain', v::domain()) + $validator = v::key('domain', v::domain(false)) ->key('root', v::directory()) ->key('index', v::file()); diff --git a/app/Commands/PhpFpmInstallCommand.php b/app/Commands/PhpFpmInstallCommand.php index a0e1049..9f95044 100644 --- a/app/Commands/PhpFpmInstallCommand.php +++ b/app/Commands/PhpFpmInstallCommand.php @@ -33,19 +33,10 @@ class InstallPhpFpmCommand extends Command */ public function handle() { - //$option = $this->menu('Install') - // ->addOption('nginx', 'Nginx') - // ->open(); - - //File::put('/etc/kkk', '/etc/kkk'); - - //$workers = exec('echo $(grep ^processor /proc/cpuinfo | wc -l)'); - //$ - //$ $this->info('Install PHP FPM'); exec('apt update 2>&1'); - exec('apt install -y php-fpm php-curl php-mysql php-pear php-mbstring php-dev php-gd 2>&1'); + exec('apt install -y php-fpm php-curl php-mysql php-pear php-dev php-gd 2>&1'); if (Install::isReady('nginx')) { diff --git a/app/Menus/Styles.php b/app/Menus/Styles.php new file mode 100644 index 0000000..e69de29