]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
no bug - fix permissions on log files and a few other things (#552)
authorDylan William Hardison <dylan@hardison.net>
Wed, 25 Apr 2018 20:20:13 +0000 (16:20 -0400)
committerGitHub <noreply@github.com>
Wed, 25 Apr 2018 20:20:13 +0000 (16:20 -0400)
Vagrantfile
vagrant_support/apache.yml
vagrant_support/checksetup.yml
vagrant_support/playbook.yml

index 2a1c4e9c46d2747382a2428d1c96b74ef9dfbc5e..f63c707a0907bd4b300d678ab97d5de6d8f762a8 100644 (file)
@@ -22,6 +22,7 @@ RSYNC_ARGS = [
   '--copy-links',
   '--exclude=local/',
   '--exclude=data/',
+  '--exclude=logs/',
   '--exclude=template_cache/',
   '--exclude=localconfig',
   '--include=.git/'
index c7159371c6efea651769fa90c7f3ebee530f4715..5031187e35af03df3139f72c5831ec45afb3d5b9 100644 (file)
   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
index 580cc9dd9f9f6e1e3f6cea536ec6eb45530ec87f..455986148f33122448bdceef9153be88c09b79c9 100644 (file)
     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'
index b394f5592fd3e2046109b67bfea888f18737049f..5041cefcb0dba5dc8ae7567e95902c64f60b2357 100644 (file)
         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
-