Browse Source

bugfix domain not longer check tld

release/0.1
Björn 4 years ago
parent
commit
3d69fa00d0
3 changed files with 2 additions and 11 deletions
  1. +1
    -1
      app/Commands/NginxVhostsCommand.php
  2. +1
    -10
      app/Commands/PhpFpmInstallCommand.php
  3. +0
    -0
      app/Menus/Styles.php

+ 1
- 1
app/Commands/NginxVhostsCommand.php View File

@ -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());


+ 1
- 10
app/Commands/PhpFpmInstallCommand.php View File

@ -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')) {


+ 0
- 0
app/Menus/Styles.php View File


Loading…
Cancel
Save