provisioning complet
This commit is contained in:
parent
c2ddfbcd22
commit
43197a4398
@ -684,7 +684,8 @@ class Homestead
|
|||||||
# Update Composer On Every Provision
|
# Update Composer On Every Provision
|
||||||
config.vm.provision 'shell' do |s|
|
config.vm.provision 'shell' do |s|
|
||||||
s.name = 'Update Composer'
|
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
|
s.privileged = false
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -695,10 +696,10 @@ class Homestead
|
|||||||
s.privileged = false
|
s.privileged = false
|
||||||
end
|
end
|
||||||
|
|
||||||
config.vm.provision 'shell' do |s|
|
# config.vm.provision 'shell' do |s|
|
||||||
s.name = 'Update motd'
|
# s.name = 'Update motd'
|
||||||
s.inline = 'sudo service motd-news restart'
|
# s.inline = 'sudo service motd-news stop && sudo service motd-news start'
|
||||||
end
|
# end
|
||||||
|
|
||||||
if settings.has_key?('backup') && settings['backup'] && (Vagrant::VERSION >= '2.1.0' || Vagrant.has_plugin?('vagrant-triggers'))
|
if settings.has_key?('backup') && settings['backup'] && (Vagrant::VERSION >= '2.1.0' || Vagrant.has_plugin?('vagrant-triggers'))
|
||||||
dir_prefix = '/vagrant/.backup'
|
dir_prefix = '/vagrant/.backup'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user