Skip to content

Commit 235161f

Browse files
update
1 parent bb24afc commit 235161f

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.1
1+
0.1.2

web/app/Installers/Server/Applications/PHPInstaller.php

+6-11
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,14 @@ public function commands()
4646
if (!empty($this->phpVersions)) {
4747
foreach ($this->phpVersions as $phpVersion) {
4848

49-
$dependenciesListPHP = [];
50-
$dependenciesListPHP[] = 'php'.$phpVersion;
51-
$dependenciesListPHP[] = 'libapache2-mod-php'.$phpVersion;
52-
$dependenciesListPHP[] = 'php'.$phpVersion;
53-
$dependenciesListPHP[] = 'php'.$phpVersion.'-cgi';
54-
49+
$commands[] = 'apt-get install -yq php'.$phpVersion;
50+
$commands[] = 'apt-get install -yq php'.$phpVersion.'-cgi';
5551
if (!empty($this->phpModules)) {
56-
$dependenciesListPHP[] = 'php'.$phpVersion.'-{'.implode(',',
57-
$this->phpModules).'}';
52+
foreach ($this->phpModules as $module) {
53+
$commands[] = 'apt-get install -yq php'.$phpVersion.'-' . $module;
54+
}
5855
}
59-
60-
$dependenciesPHP = implode(' ', $dependenciesListPHP);
61-
$commands[] = 'apt-get install -yq '.$dependenciesPHP;
56+
$commands[] = 'apt-get install -yq libapache2-mod-php'.$phpVersion;
6257
}
6358

6459
}

0 commit comments

Comments
 (0)