correction pb permissions sur rep run et log

ajout var environnement pour plack
reorganisation des taches apache
This commit is contained in:
2021-12-06 18:22:41 +01:00
parent 4c366ff5c4
commit f9cfd9ccc1
4 changed files with 16 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
---
# defaults file for tco.koha
koha_version: 21.05.05
koha_version: 21.05.07
koha_home_dir: /home/koha
koha_install_dir: "{{ koha_home_dir }}/koha"
koha_src_dir: "{{ koha_home_dir }}/Koha-v{{ koha_version }}"

View File

@@ -4,19 +4,6 @@
name: libapache2-mpm-itk
state: present
- name: activate required modules
apache2_module:
state: present
name: "{{ item }}"
loop:
- rewrite
- proxy
- proxy_http
- ssl
- headers
- cgi
notify: reload apache
- name: configuration
template:
src: "{{ item }}"
@@ -36,3 +23,16 @@
- apache-shared-opac-plack.conf
notify: reload apache
- name: activate required modules
apache2_module:
state: present
name: "{{ item }}"
loop:
- rewrite
- proxy
- proxy_http
- ssl
- headers
- cgi
notify: reload apache

View File

@@ -110,7 +110,7 @@
owner: koha
group: www-data
recurse: yes
mode: 1775
mode: 01775
loop:
- "{{ koha_install_dir }}/var/log"
- "{{ koha_install_dir }}/var/run"

View File

@@ -5,6 +5,7 @@ After=network.target remote-fs.target nss-lookup.target
[Service]
Environment="KOHA_CONF={{ koha_install_dir }}/etc/koha-conf.xml"
Environment="PERL5LIB={{ koha_install_dir }}/lib"
KOHA_HOME={{ koha_install_dir }}
Type=forking
User=root
ExecStart={{ koha_install_dir }}/bin/plack/koha-plack --start foobar