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

[Untested] Automatic provisioning with 'app.db'

This commit is contained in:
Arky 2018-08-14 19:33:04 +07:00
parent b804b118b7
commit f8dc5c1b85
5 changed files with 6 additions and 5 deletions

View file

@ -1,5 +1,5 @@
====================
Calibre Web README
Calibre-web README
====================
This Ansible role installs Calibre Web within Internet-in-a-Box. Calibre Web is
@ -48,7 +48,7 @@ $ sudo git pull
Backup Content
--------------
Calibre-web stores its configuration into SQLite database file /library/calibre-web/metadata.db.
Calibre-web stores its configuration into SQLite database file /library/calibre-web/app.db.
The content is stored in various folders under /library/calibre-web. Please backup the files before
upgrading. Also set calibreweb_provision variable to False before upgrading.

View file

@ -16,6 +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: "{{ calibreweb_path }}/app.db"
#calibre-web system user
calibreweb_user: root

Binary file not shown.

View file

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

View file

@ -3,7 +3,7 @@ Description=Calibre-Web
[Service]
Type=simple
User={{ calibreweb_user }}
ExecStart=/usr/bin/python "{{ calibreweb_exec_path }}"
ExecStart={{ calibreweb_exec_path }} -p {{ calibreweb_database }}
WorkingDirectory={{ calibreweb_path }}
[Install]