Skip to content

Commit

Permalink
πŸš‘ Don't use the Z-Ray Extension unless the user has a site using it. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
svpernova09 authored Feb 7, 2018
1 parent 70e975c commit 8dc198e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/homestead.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,14 @@ def Homestead.configure(config, settings)
s.path = scriptDir + "/clear-nginx.sh"
end

# Temporary fix to disable Z-Ray by default to be fixed in future base box update
config.vm.provision "shell" do |s|
s.inline = "rm -rf /usr/lib/php/20170718/zray.so"
end
config.vm.provision "shell" do |s|
s.inline = "rm -rf /etc/php/7.2/fpm/conf.d/zray.ini"
end

if settings.include? 'sites'
settings["sites"].each do |site|

Expand Down Expand Up @@ -217,6 +225,12 @@ def Homestead.configure(config, settings)
config.vm.provision "shell" do |s|
s.inline = "ln -sf /opt/zray/gui/public " + site["to"] + "/ZendServer"
end
config.vm.provision "shell" do |s|
s.inline = "ln -sf /opt/zray/lib/zray.so /usr/lib/php/20170718/zray.so"
end
config.vm.provision "shell" do |s|
s.inline = "ln -sf /opt/zray/zray.ini /etc/php/7.2/fpm/conf.d/zray.ini"
end
else
config.vm.provision "shell" do |s|
s.inline = "rm -rf " + site["to"] + "/ZendServer"
Expand Down

0 comments on commit 8dc198e

Please sign in to comment.