Vagrant: Mount /vagrant/var/log/ writable for apache
This requires you to run vagrant reload if the vm is already running refs #4549
This commit is contained in:
parent
c3246c926d
commit
e0f1d7dc37
|
@ -11,8 +11,8 @@ installJquery () {
|
|||
}
|
||||
|
||||
mountIcinga2webConfd () {
|
||||
# Remount /vagrant/config with appropriate permissions since the group apache is missing initially
|
||||
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g apache`,dmode=775,fmode=775 /vagrant/config /vagrant/config
|
||||
# Remount /vagrant/config/ with appropriate permissions since the group apache is missing initially
|
||||
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g apache`,dmode=775,fmode=775 /vagrant/config/ /vagrant/config/
|
||||
}
|
||||
|
||||
startServicesWithNonLSBCompliantExitStatusCodes () {
|
||||
|
@ -21,8 +21,14 @@ startServicesWithNonLSBCompliantExitStatusCodes () {
|
|||
service ido2db-pgsql start || true
|
||||
}
|
||||
|
||||
mountIcinga2webVarLog () {
|
||||
# Remount /vagrant/var/log/ with appropriate permissions since the group apache is missing initially
|
||||
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g apache`,dmode=775,fmode=775 /vagrant/var/log/ /vagrant/var/log/
|
||||
}
|
||||
|
||||
installJquery
|
||||
mountIcinga2webConfd
|
||||
startServicesWithNonLSBCompliantExitStatusCodes
|
||||
mountIcinga2webVarLog
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -42,6 +42,7 @@ Vagrant.configure("2") do |config|
|
|||
# the path on the guest to mount the folder. And the optional third
|
||||
# argument is a set of non-required options.
|
||||
config.vm.synced_folder "./config", "/vagrant/config"
|
||||
config.vm.synced_folder "./var/log", "/vagrant/var/log"
|
||||
|
||||
# Provider-specific configuration so you can fine-tune various
|
||||
# backing providers for Vagrant. These expose provider-specific options.
|
||||
|
|
Loading…
Reference in New Issue