mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
Refactor: Simpler Calibre-web service
Systemd does take multiple arguments! Removing extranous files and envirnoment variables.
This commit is contained in:
parent
21249f0623
commit
78b0b753d8
3 changed files with 3 additions and 9 deletions
|
@ -24,7 +24,8 @@
|
|||
pip:
|
||||
requirements: requirements.txt
|
||||
chdir: "{{ calibreweb_path }}"
|
||||
extra_args: --target vendor
|
||||
extra_args: '--target vendor'
|
||||
ignore_errors: True
|
||||
|
||||
- name: Create calibre-web systemd service unit and httpd2 configuration.
|
||||
template:
|
||||
|
@ -36,8 +37,6 @@
|
|||
with_items:
|
||||
- { src: 'calibre-web.service.j2', dest: '/etc/systemd/system/calibre-web.service', mode: '0644' }
|
||||
- { src: 'calibre-web.conf.j2', dest: '/etc/apache2/sites-available/calibre-web.conf', mode: '0644' }
|
||||
- { src: 'cps.conf.j2', dest: "{{ calibreweb_home }}/cps.conf" , mode: '0644' }
|
||||
|
||||
|
||||
- name: Provision calibre-web default metadata.
|
||||
copy:
|
||||
|
|
|
@ -3,10 +3,7 @@ Description=Calibre-Web
|
|||
[Service]
|
||||
Type=simple
|
||||
User={{ calibreweb_user }}
|
||||
#EnvironmentFile={{ calibreweb_home }}/cps.conf
|
||||
#WorkingDirectory={{ calibreweb_path }}
|
||||
ExecStart=/usr/bin/python {{ calibreweb_exec_path }} -p {{ calibreweb_home }}/{{ calibreweb_settings_database }}
|
||||
|
||||
ExecStart=/usr/bin/python {{ calibreweb_exec_path }} -p {{ calibreweb_config }}/{{ calibreweb_settings_database }}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
ARG1 = -p
|
||||
ARG2 = {{ calibreweb_home }}/{{ calibreweb_database }}
|
Loading…
Reference in a new issue