public function runLicenseImport($installDir) { if (file_exists("{$installDir}/bin/console")) { try { $this->runCliCommands($installDir); } catch (\RuntimeException $e) { $this->ioService->writeln("<comment>Skipping license import: {$e->getMessage()}</comment>"); } } $this->ioService->writeln("<info>Clearing the cache</info>"); $this->processExecutor->execute($this->shopwareInfo->getCacheDir($installDir) . "/clear_cache.sh"); }
/** * Set permissions for the shopware directory * * @param string $directory */ public function fixPermissions($directory) { $command = sprintf('chmod 0777 -R "%s"', $this->shopwareInfo->getLogDir($directory)); $this->processExecutor->execute($command, null, true); $command = sprintf('chmod 0777 -R "%s"', $this->shopwareInfo->getCacheDir($directory)); $this->processExecutor->execute($command, null, true); if (file_exists($directory . '/web')) { $command = sprintf('chmod 0777 -R "%s"', $directory . '/web'); $this->processExecutor->execute($command, null, true); } $command = sprintf('chmod +x "%s"', $directory . '/bin/console'); $this->processExecutor->execute($command, null, true); $command = sprintf('chmod +x "%s"', $this->shopwareInfo->getCacheDir($directory) . '/clear_cache.sh'); $this->processExecutor->execute($command, null, true); $this->setUser($directory); $this->setGroup($directory); }