info('Application is already installed.'); return; } $this->call('migrate', ['--force'=>true]); $this->call('pbx:generate-credentials', ['--force'=>true]); $this->call('db:seed', ['--force'=>true]); // $this->call('laravel:worker'); // \DB::table('asterisk.soundlang_customlangs')->insert([ // ['id' => '1','language' => 'ar','description' => 'Arabic Language'] // ]); // $this->call('egy:sounds', ['--force'=>true]); $this->call('egy:dialplan'); $process = new Process(['chown','asterisk:asterisk', 'vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php']); $process->run(); $process = new Process(['chown','asterisk:asterisk', 'vendor/genealabs/laravel-model-caching/src/CacheKey.php']); $process->run(); $process = new Process(['cp','dialplan/EventFactoryImpl.php', 'vendor/marcelog/pami/src/PAMI/Message/Event/Factory/Impl/EventFactoryImpl.php']); $process->run(); $process = new Process(['cp','dialplan/PDOStatement.php', 'vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php']); $process->run(); $process = new Process(['cp','dialplan/CacheKey.php', 'vendor/genealabs/laravel-model-caching/src/CacheKey.php']); $process->run(); touch(storage_path().'/installed'); touch(storage_path().'/cookies'); $process = new Process(['chown','asterisk:asterisk', storage_path().'/cookies']); $process->run(); $process = new Process(['chmod','777', storage_path().'/cookies']); $process->run(); } }