provisioning complet

This commit is contained in:
jm.dupuy 2024-06-13 10:18:43 +02:00
parent c2ddfbcd22
commit 43197a4398

View File

@ -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'