jenkins-bot has submitted this change and it was merged.

Change subject: Fix logging with a separate dir and www-data as user and group
......................................................................


Fix logging with a separate dir and www-data as user and group

The PHP code runs as user and group www-data.  However, neither the
www-data user nor group has write access to /vagrant.

It does need to write to this directory in general, but it does need
to write logs, so this setups a synced directory for that.  The paths
are the same as before in both the host and guest.

Change-Id: I0352239e774a2d17237301b283245b26dddbae02
---
M Vagrantfile
1 file changed, 7 insertions(+), 0 deletions(-)

Approvals:
  BryanDavis: Looks good to me, but someone else must approve
  Ori.livneh: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/Vagrantfile b/Vagrantfile
index 3e31518..a8aa7ab 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -55,6 +55,13 @@
         owner: 'vagrant',
         group: 'www-data'
 
+    # www-data needs to write to the logs, but doesn't need write
+    # access for all of /vagrant
+    config.vm.synced_folder './logs', '/vagrant/logs',
+        id: 'vagrant-logs',
+        owner: 'www-data',
+        group: 'www-data'
+
     config.vm.provider :virtualbox do |vb|
         # See http://www.virtualbox.org/manual/ch08.html for additional 
options.
         vb.customize ['modifyvm', :id, '--memory', '768']

-- 
To view, visit https://gerrit.wikimedia.org/r/89619
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0352239e774a2d17237301b283245b26dddbae02
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to