From 993e754afdf6a94e128633be7261e27cfc384f2c Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Wed, 25 Apr 2018 16:20:13 -0400 Subject: no bug - fix permissions on log files and a few other things (#552) --- vagrant_support/apache.yml | 8 +++++++- vagrant_support/checksetup.yml | 6 ++++++ vagrant_support/playbook.yml | 6 ------ 3 files changed, 13 insertions(+), 7 deletions(-) (limited to 'vagrant_support') diff --git a/vagrant_support/apache.yml b/vagrant_support/apache.yml index c7159371c..5031187e3 100644 --- a/vagrant_support/apache.yml +++ b/vagrant_support/apache.yml @@ -10,5 +10,11 @@ service: name=httpd enabled=yes when: LAZY == 0 +- name: ensure bugzilla.log has right permissions + file: path=/vagrant/logs/bugzilla.log state=touch owner=vagrant group=apache mode=0660 + +- name: ensure bugzilla-json.log has right permissions + file: path=/vagrant/logs/bugzilla-json.log state=touch owner=vagrant group=apache mode=0660 + - name: restart httpd - service: name=httpd state=restarted + service: name=httpd state=restarted \ No newline at end of file diff --git a/vagrant_support/checksetup.yml b/vagrant_support/checksetup.yml index 580cc9dd9..455986148 100644 --- a/vagrant_support/checksetup.yml +++ b/vagrant_support/checksetup.yml @@ -22,6 +22,12 @@ mode: 0644 when: LAZY == 0 +- name: fix owner of /vagrant/template_cache + file: path=/vagrant/template_cache state=directory owner=vagrant group=apache recurse=yes + +- name: fix owner of /data + file: path=/data state=directory owner=vagrant group=apache recurse=yes + - name: run checksetup become: false shell: sg apache -c '/usr/local/bin/bmo-checksetup --no-templates' diff --git a/vagrant_support/playbook.yml b/vagrant_support/playbook.yml index b394f5592..5041cefcb 100644 --- a/vagrant_support/playbook.yml +++ b/vagrant_support/playbook.yml @@ -216,9 +216,3 @@ LAZY: 0 - import_tasks: devtools.yml - - name: fix owner of /vagrant/template_cache - file: path=/vagrant/template_cache state=directory owner=vagrant group=apache recurse=yes - - - name: fix owner of /data - file: path=/data state=directory owner=vagrant group=apache recurse=yes - -- cgit v1.2.3-24-g4f1b