1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Updated Systemd unit, use metadata.db as default

This commit is contained in:
Arky 2018-08-15 14:10:55 +07:00
parent a4fe6338cf
commit 1ac0275c74
3 changed files with 3 additions and 4 deletions

View file

@ -16,7 +16,7 @@ calibreweb_exec_path: "{{ calibreweb_path }}/cps.py"
# Calibre-web setup will be provisioned with default administration account, metadata.db and
# language. You could turn this to 'False' while reinstalling/upgrading calibre-web.
calibreweb_provision: True
calibreweb_database: app.db
calibreweb_database: metadata.db
#calibre-web system user
calibreweb_user: root

View file

@ -35,7 +35,7 @@
- name: Provision calibre-web with default administration account and database.
copy:
src: roles/calibre-web/files/app.db
src: roles/calibre-web/files/metadata.db
dest: "{{ calibreweb_home }}/{{ calibreweb_database }}"
owner: "{{ calibreweb_user }}"
group: "{{ apache_user }}"

View file

@ -3,9 +3,8 @@ Description=Calibre-Web
[Service]
Type=simple
Environment=CALIBRE_DBPATH={{ calibreweb_home }}
Environment=ARGS=-p {{calibreweb_home}}{{ calibreweb_database }}
User={{ calibreweb_user }}
ExecStart={{ calibreweb_exec_path }} $ARGS
ExecStart=/usr/bin/python {{ calibreweb_exec_path }}
WorkingDirectory={{ calibreweb_path }}
[Install]