Update to 2020-10-18 19:00

master
Daniel Berteaud 4 years ago
parent 50ead6075c
commit fea52e70b4
  1. 2
      roles/papermerge/tasks/conf.yml
  2. 2
      roles/papermerge/tasks/directories.yml
  3. 11
      roles/papermerge/tasks/install.yml
  4. 1
      roles/papermerge/templates/papermerge-worker.service.j2
  5. 3
      roles/papermerge/templates/papermerge.conf.py.j2
  6. 1
      roles/repo_nux_dextop/tasks/main.yml

@ -13,7 +13,7 @@
src: production.py.j2 src: production.py.j2
dest: "{{ papermerge_root_dir }}/app/config/settings/production.py" dest: "{{ papermerge_root_dir }}/app/config/settings/production.py"
group: "{{ papermerge_user }}" group: "{{ papermerge_user }}"
mode: 640 mode: 0640
tags: ged tags: ged
- name: Iniialize or update the database - name: Iniialize or update the database

@ -14,6 +14,8 @@
owner: "{{ papermerge_user }}" owner: "{{ papermerge_user }}"
mode: 700 mode: 700
- dir: "{{ papermerge_root_dir }}/input" - dir: "{{ papermerge_root_dir }}/input"
owner: "{{ papermerge_user }}"
mode: 700
- dir: "{{ papermerge_root_dir }}/tmp" - dir: "{{ papermerge_root_dir }}/tmp"
owner: "{{ papermerge_user }}" owner: "{{ papermerge_user }}"
mode: 700 mode: 700

@ -103,3 +103,14 @@
systemd: daemon_reload=True systemd: daemon_reload=True
when: papermerge_units.results | selectattr('changed','equalto',True) | list | length > 0 when: papermerge_units.results | selectattr('changed','equalto',True) | list | length > 0
tags: ged tags: ged
- name: Install a wrapper for manage.py
copy:
content: |
#!/bin/bash
cd {{ papermerge_root_dir }}/app
{{ papermerge_root_dir }}/venv/bin/python ./manage.py $@
dest: /usr/local/bin/papermerge
mode: 755
tags: ged

@ -6,6 +6,7 @@ After=network.target
Type=simple Type=simple
WorkingDirectory={{ papermerge_root_dir }}/app WorkingDirectory={{ papermerge_root_dir }}/app
Environment=DJANGO_SETTINGS_MODULE=config.settings.production Environment=DJANGO_SETTINGS_MODULE=config.settings.production
Environment=OMP_THREAD_LIMIT={{ ansible_processor_vcpus }}
ExecStart={{ papermerge_root_dir }}/venv/bin/python manage.py worker ExecStart={{ papermerge_root_dir }}/venv/bin/python manage.py worker
User={{ papermerge_user }} User={{ papermerge_user }}
Group={{ papermerge_user }} Group={{ papermerge_user }}

@ -9,9 +9,6 @@ IMPORTER_DIR = "{{ papermerge_root_dir }}/input"
FILES_MIN_UNMODIFIED_DURATION = 10 FILES_MIN_UNMODIFIED_DURATION = 10
OCR_DEFAULT_LANGUAGE = "{{ papermerge_ocr_default_lang }}" OCR_DEFAULT_LANGUAGE = "{{ papermerge_ocr_default_lang }}"
LANGUAGE_FROM_AGENT = True LANGUAGE_FROM_AGENT = True
MIDDLEWARE.append(
'django.middleware.locale.LocaleMiddleware'
)
TASK_QUEUE_DIR = "{{ papermerge_root_dir }}/tmp/queue" TASK_QUEUE_DIR = "{{ papermerge_root_dir }}/tmp/queue"
OCR_LANGUAGES = { OCR_LANGUAGES = {
"deu": "Deutsch", "deu": "Deutsch",

@ -7,4 +7,5 @@
baseurl: http://li.nux.ro/download/nux/dextop/el7/$basearch/ http://mirror.li.nux.ro/li.nux.ro/nux/dextop/el7/$basearch/ baseurl: http://li.nux.ro/download/nux/dextop/el7/$basearch/ http://mirror.li.nux.ro/li.nux.ro/nux/dextop/el7/$basearch/
gpgcheck: True gpgcheck: True
gpgkey: http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro gpgkey: http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
tags: repo

Loading…
Cancel
Save