From 43197a4398adea28087daf4a55b63f5e19f397b7 Mon Sep 17 00:00:00 2001 From: "jm.dupuy" Date: Thu, 13 Jun 2024 10:18:43 +0200 Subject: [PATCH] provisioning complet --- scripts/homestead.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/homestead.rb b/scripts/homestead.rb index 689c830..c493711 100644 --- a/scripts/homestead.rb +++ b/scripts/homestead.rb @@ -684,7 +684,8 @@ class Homestead # Update Composer On Every Provision config.vm.provision 'shell' do |s| s.name = 'Update Composer' - s.inline = ' export http_proxy=http://10.121.38.1:8080 && export HTTP_PROXY=http://10.121.38.1:8080 && export https_proxy=http://10.121.38.1:8080 && export HTTPS_PROXY=http://10.121.38.1:8080 && sudo chown -R vagrant:vagrant /usr/local/bin && sudo -u vagrant /usr/bin/php8.3 /usr/local/bin/composer self-update && sudo chown -R vagrant:vagrant /home/vagrant/.config/' + # s.inline = ' sudo chown -R vagrant:vagrant /usr/local/bin && sudo -u vagrant "export http_proxy=http://10.121.38.1:8080 && export https_proxy=http://10.121.38.1:8080 && composer self-update" && sudo chown -R vagrant:vagrant /home/vagrant/.config/' + s.inline = " sudo chown -R vagrant:vagrant /usr/local/bin && sudo -u vagrant -- sh -c 'export http_proxy=http://10.121.38.1:8080 && export https_proxy=http://10.121.38.1:8080 && composer self-update' && sudo chown -R vagrant:vagrant /home/vagrant/.config/" s.privileged = false end @@ -695,10 +696,10 @@ class Homestead s.privileged = false end - config.vm.provision 'shell' do |s| - s.name = 'Update motd' - s.inline = 'sudo service motd-news restart' - end + # config.vm.provision 'shell' do |s| + # s.name = 'Update motd' + # s.inline = 'sudo service motd-news stop && sudo service motd-news start' + # end if settings.has_key?('backup') && settings['backup'] && (Vagrant::VERSION >= '2.1.0' || Vagrant.has_plugin?('vagrant-triggers')) dir_prefix = '/vagrant/.backup'