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 () {
|
mountIcinga2webConfd () {
|
||||||
# Remount /vagrant/config with appropriate permissions since the group apache is missing initially
|
# 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
|
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g apache`,dmode=775,fmode=775 /vagrant/config/ /vagrant/config/
|
||||||
}
|
}
|
||||||
|
|
||||||
startServicesWithNonLSBCompliantExitStatusCodes () {
|
startServicesWithNonLSBCompliantExitStatusCodes () {
|
||||||
|
@ -21,8 +21,14 @@ startServicesWithNonLSBCompliantExitStatusCodes () {
|
||||||
service ido2db-pgsql start || true
|
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
|
installJquery
|
||||||
mountIcinga2webConfd
|
mountIcinga2webConfd
|
||||||
startServicesWithNonLSBCompliantExitStatusCodes
|
startServicesWithNonLSBCompliantExitStatusCodes
|
||||||
|
mountIcinga2webVarLog
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -42,6 +42,7 @@ Vagrant.configure("2") do |config|
|
||||||
# the path on the guest to mount the folder. And the optional third
|
# the path on the guest to mount the folder. And the optional third
|
||||||
# argument is a set of non-required options.
|
# argument is a set of non-required options.
|
||||||
config.vm.synced_folder "./config", "/vagrant/config"
|
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
|
# Provider-specific configuration so you can fine-tune various
|
||||||
# backing providers for Vagrant. These expose provider-specific options.
|
# backing providers for Vagrant. These expose provider-specific options.
|
||||||
|
|
Loading…
Reference in New Issue