|
3 | 3 | namespace Hestia\WebApp\Installers\Prestashop; |
4 | 4 |
|
5 | 5 | use Hestia\WebApp\Installers\BaseSetup as BaseSetup; |
| 6 | +use function Hestiacp\quoteshellarg\quoteshellarg; |
6 | 7 |
|
7 | 8 | class PrestashopSetup extends BaseSetup { |
8 | 9 | protected $appInfo = [ |
@@ -71,17 +72,19 @@ public function install(array $options = null): bool { |
71 | 72 | "v-run-cli-cmd", |
72 | 73 | [ |
73 | 74 | "/usr/bin/php" . $options["php_version"], |
74 | | - $this->getDocRoot("/install/index_cli.php"), |
75 | | - "--db_server=" . $options["database_host"], |
76 | | - "--db_user=" . $this->appcontext->user() . "_" . $options["database_user"], |
77 | | - "--db_password=" . $options["database_password"], |
78 | | - "--db_name=" . $this->appcontext->user() . "_" . $options["database_name"], |
79 | | - "--firstname=" . $options["prestashop_account_first_name"], |
80 | | - "--lastname=" . $options["prestashop_account_last_name"], |
81 | | - "--password=" . $options["prestashop_account_password"], |
82 | | - "--email=" . $options["prestashop_account_email"], |
83 | | - "--domain=" . $this->domain, |
84 | | - "--ssl=" . $ssl_enabled, |
| 75 | + quoteshellarg($this->getDocRoot("/install/index_cli.php")), |
| 76 | + "--db_server=" . quoteshellarg($options["database_host"]), |
| 77 | + "--db_user=" . |
| 78 | + quoteshellarg($this->appcontext->user() . "_" . $options["database_user"]), |
| 79 | + "--db_password=" . quoteshellarg($options["database_password"]), |
| 80 | + "--db_name=" . |
| 81 | + quoteshellarg($this->appcontext->user() . "_" . $options["database_name"]), |
| 82 | + "--firstname=" . quoteshellarg($options["prestashop_account_first_name"]), |
| 83 | + "--lastname=" . quoteshellarg($options["prestashop_account_last_name"]), |
| 84 | + "--password=" . quoteshellarg($options["prestashop_account_password"]), |
| 85 | + "--email=" . quoteshellarg($options["prestashop_account_email"]), |
| 86 | + "--domain=" . quoteshellarg($this->domain), |
| 87 | + "--ssl=" . (int) $ssl_enabled, |
85 | 88 | ], |
86 | 89 | $status, |
87 | 90 | ); |
|
0 commit comments