File tree 2 files changed +7
-12
lines changed
web/app/Installers/Server/Applications
2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 1
- 0.1.1
1
+ 0.1.2
Original file line number Diff line number Diff line change @@ -46,19 +46,14 @@ public function commands()
46
46
if (!empty ($ this ->phpVersions )) {
47
47
foreach ($ this ->phpVersions as $ phpVersion ) {
48
48
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 ' ;
55
51
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
+ }
58
55
}
59
-
60
- $ dependenciesPHP = implode (' ' , $ dependenciesListPHP );
61
- $ commands [] = 'apt-get install -yq ' .$ dependenciesPHP ;
56
+ $ commands [] = 'apt-get install -yq libapache2-mod-php ' .$ phpVersion ;
62
57
}
63
58
64
59
}
You can’t perform that action at this time.
0 commit comments