From: Dylan William Hardison Date: Wed, 25 Apr 2018 20:20:13 +0000 (-0400) Subject: no bug - fix permissions on log files and a few other things (#552) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=993e754afdf6a94e128633be7261e27cfc384f2c;p=thirdparty%2Fbugzilla.git no bug - fix permissions on log files and a few other things (#552) --- diff --git a/Vagrantfile b/Vagrantfile index 2a1c4e9c4..f63c707a0 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -22,6 +22,7 @@ RSYNC_ARGS = [ '--copy-links', '--exclude=local/', '--exclude=data/', + '--exclude=logs/', '--exclude=template_cache/', '--exclude=localconfig', '--include=.git/' 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 -