1
0
Fork 0
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:
Jerry Vonau 2020-02-13 12:22:18 -06:00
parent 807f94a6a1
commit 4ec22de866
2 changed files with 6 additions and 6 deletions

View file

@ -53,11 +53,11 @@
# 2020-02-02: IS PYTHON 3 POSSIBLE ABOVE AND BELOW? # 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? #- name: Symlink {{ calibreweb_venv_path }}/vendor -> {{ calibreweb_venv_path }}/lib/python2.7/site-packages - to keep {{ calibreweb_venv_path }}/cps.py happy?
file: # file:
src: "{{ calibreweb_venv_path }}/lib/python3.7/site-packages" # src: "{{ calibreweb_venv_path }}/lib/python3.7/site-packages"
path: "{{ calibreweb_venv_path }}/vendor" # /usr/local/calibre-web-py3 # path: "{{ calibreweb_venv_path }}/vendor" # /usr/local/calibre-web-py3
state: link # state: link
- name: Install /etc/systemd/system/calibre-web.service from template - name: Install /etc/systemd/system/calibre-web.service from template
template: template:

View file

@ -3,7 +3,7 @@ Description=Calibre-Web
[Service] [Service]
Type=simple Type=simple
User={{ calibreweb_user }} 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] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target