mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
call venv's python3 bypassing the shabang line in cps.py
This commit is contained in:
parent
807f94a6a1
commit
4ec22de866
2 changed files with 6 additions and 6 deletions
|
@ -53,11 +53,11 @@
|
|||
|
||||
# 2020-02-02: IS PYTHON 3 POSSIBLE ABOVE AND BELOW?
|
||||
|
||||
- name: Symlink {{ calibreweb_venv_path }}/vendor -> {{ calibreweb_venv_path }}/lib/python2.7/site-packages - to keep {{ calibreweb_venv_path }}/cps.py happy?
|
||||
file:
|
||||
src: "{{ calibreweb_venv_path }}/lib/python3.7/site-packages"
|
||||
path: "{{ calibreweb_venv_path }}/vendor" # /usr/local/calibre-web-py3
|
||||
state: link
|
||||
#- name: Symlink {{ calibreweb_venv_path }}/vendor -> {{ calibreweb_venv_path }}/lib/python2.7/site-packages - to keep {{ calibreweb_venv_path }}/cps.py happy?
|
||||
# file:
|
||||
# src: "{{ calibreweb_venv_path }}/lib/python3.7/site-packages"
|
||||
# path: "{{ calibreweb_venv_path }}/vendor" # /usr/local/calibre-web-py3
|
||||
# state: link
|
||||
|
||||
- name: Install /etc/systemd/system/calibre-web.service from template
|
||||
template:
|
||||
|
|
|
@ -3,7 +3,7 @@ Description=Calibre-Web
|
|||
[Service]
|
||||
Type=simple
|
||||
User={{ calibreweb_user }}
|
||||
ExecStart={{ calibreweb_exec_path }} -p {{ calibreweb_config }}/{{ calibreweb_settings_database }}
|
||||
ExecStart={{ calibreweb_venv_path }}/bin/python3 {{ calibreweb_exec_path }} -p {{ calibreweb_config }}/{{ calibreweb_settings_database }}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue