Skip to content

Commit 6fc4330

Browse files
committed
Fixed issue with Nginx 1.13.12 not starting
1 parent 26cba83 commit 6fc4330

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Vagrantfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Vagrant.configure("2") do |config|
126126
if settings.has_key?("php-modules")
127127
settings["php-modules"].each do |mod|
128128
config.vm.provision "shell" do |s|
129-
s.name = "Installing PHP module: " + mod
129+
s.name = "Installing PHP module [#{mod}]"
130130
s.path = "#{script_dir}/install-php-module"
131131
s.args = mod
132132
end
@@ -143,7 +143,7 @@ Vagrant.configure("2") do |config|
143143
if settings.has_key?("composer-packages")
144144
settings["composer-packages"].each do |package|
145145
config.vm.provision "shell" do |s|
146-
s.name = "Installing Composer package: #{package}"
146+
s.name = "Installing Composer package [#{package}]"
147147
s.path = "#{script_dir}/install-composer-package"
148148
s.args = package
149149
s.privileged = false
@@ -187,6 +187,14 @@ Vagrant.configure("2") do |config|
187187
end
188188
end
189189

190+
# Fix for issue with Nginx 1.13.12 not starting on damianlewis/ubuntu-16.04-lemp box
191+
if config.vm.box == "damianlewis/ubuntu-16.04-lemp"
192+
config.vm.provision "shell", run: "always" do |s|
193+
s.name = "Starting Nginx"
194+
s.inline = "service nginx restart > /dev/null 2>&1"
195+
end
196+
end
197+
190198
# Create all the configured sites
191199
if settings.has_key?("sites")
192200
settings["sites"].each do |site|

0 commit comments

Comments
 (0)