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:
parent
a4fe6338cf
commit
1ac0275c74
3 changed files with 3 additions and 4 deletions
|
@ -16,7 +16,7 @@ calibreweb_exec_path: "{{ calibreweb_path }}/cps.py"
|
||||||
# Calibre-web setup will be provisioned with default administration account, metadata.db and
|
# 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.
|
# language. You could turn this to 'False' while reinstalling/upgrading calibre-web.
|
||||||
calibreweb_provision: True
|
calibreweb_provision: True
|
||||||
calibreweb_database: app.db
|
calibreweb_database: metadata.db
|
||||||
|
|
||||||
#calibre-web system user
|
#calibre-web system user
|
||||||
calibreweb_user: root
|
calibreweb_user: root
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
- name: Provision calibre-web with default administration account and database.
|
- name: Provision calibre-web with default administration account and database.
|
||||||
copy:
|
copy:
|
||||||
src: roles/calibre-web/files/app.db
|
src: roles/calibre-web/files/metadata.db
|
||||||
dest: "{{ calibreweb_home }}/{{ calibreweb_database }}"
|
dest: "{{ calibreweb_home }}/{{ calibreweb_database }}"
|
||||||
owner: "{{ calibreweb_user }}"
|
owner: "{{ calibreweb_user }}"
|
||||||
group: "{{ apache_user }}"
|
group: "{{ apache_user }}"
|
||||||
|
|
|
@ -3,9 +3,8 @@ Description=Calibre-Web
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
Environment=CALIBRE_DBPATH={{ calibreweb_home }}
|
Environment=CALIBRE_DBPATH={{ calibreweb_home }}
|
||||||
Environment=ARGS=-p {{calibreweb_home}}{{ calibreweb_database }}
|
|
||||||
User={{ calibreweb_user }}
|
User={{ calibreweb_user }}
|
||||||
ExecStart={{ calibreweb_exec_path }} $ARGS
|
ExecStart=/usr/bin/python {{ calibreweb_exec_path }}
|
||||||
WorkingDirectory={{ calibreweb_path }}
|
WorkingDirectory={{ calibreweb_path }}
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue