Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 021f054

Browse files
committed
Merge branch 'release/1.2.4'
2 parents 71e994d + 16ce9b9 commit 021f054

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Vagrantfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,10 @@ Vagrant.configure("2") do |config|
4949
# Prepare configuration and setup shell scripts for it
5050
current_file = Pathname.new(__FILE__)
5151
box_config = VagrantApp::Config.new
52-
5352
# Base hypernode provisioner
5453
box_config.shell_add('hypernode.sh')
5554
.shell_add('composer.sh') # Composer installer
56-
.shell_add('nfs.sh') # NFS server modifications to have proper permissions
55+
.shell_add('nfs.sh', :unison, true) # NFS server modifications to have proper permissions
5756
.shell_add('developer.sh', :developer) # Developer mode setting, depends on :developer configuration flag
5857
.shell_add('profiler.sh', :profiler) # Profiler installer, depends on :profiler configuration flag
5958
.shell_add('disable-varnish.sh', :varnish, true) # Varnish disabler, depends on :varnish inverted flag

vagrant/inline/config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def shell_add(script, flags = nil, inverse = false)
7878

7979
def shell_list
8080
scripts = @shell.select do |info|
81-
flag?(info[:flags])
81+
flag?(info[:flags], info[:inverse])
8282
end
8383
scripts.collect do |info|
8484
info[:file]

vagrant/provisioning/nfs.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
set -e
44

55
echo "Changing user id"
6+
IS_HHVM_RUNNING=$(service hhvm status | grep "stop" > /dev/null && echo "" || echo "1")
67
service nginx stop
78
service ${VAGRANT_FPM_SERVICE} stop
8-
service hhvm stop
9+
[ $IS_HHVM_RUNNING ] && service hhvm stop
910
usermod -u ${VAGRANT_UID} ${VAGRANT_USER}
1011
service nginx start
1112
service ${VAGRANT_FPM_SERVICE} start
12-
service hhvm start
13+
[ $IS_HHVM_RUNNING ] && service hhvm start
14+
true # Return true at the end of the stack

0 commit comments

Comments
 (0)