[codeface] [PATCH 4/9] Ensure that the log directory is writable

  • From: Wolfgang Mauerer <wolfgang.mauerer@xxxxxxxxxxxxxxxxx>
  • To: <codeface@xxxxxxxxxxxxx>
  • Date: Thu, 16 Jun 2016 22:46:29 +0200

With LXC based deployments, the shared folder /vagrant
is not necessarily owned by user "vagrant" (this is only guaranteed
if the UID on the host machine is 1000, which is the case for
the user that was first created in most distributions). To
ensure that log files can be written, make the log/ directory
writable for everyone.

Signed-off-by: Wolfgang Mauerer <wolfgang.mauerer@xxxxxxxxxxxxxxxxx>
---
 Vagrantfile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Vagrantfile b/Vagrantfile
index 33b3100..63de77b 100755
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -16,6 +16,9 @@ integration-scripts/install_codeface_python.sh
 integration-scripts/install_cppstats.sh
 
 integration-scripts/setup_database.sh
+
+# Ensure that logs can actually be written to the log directory
+sudo chmod a+rw log
 SCRIPT
 
 Vagrant.configure("2") do |config|
-- 
2.8.3


Other related posts:

  • » [codeface] [PATCH 4/9] Ensure that the log directory is writable - Wolfgang Mauerer