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:
parent
b804b118b7
commit
f8dc5c1b85
5 changed files with 6 additions and 5 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
BIN
roles/calibre-web/files/app.db
Normal file
BIN
roles/calibre-web/files/app.db
Normal file
Binary file not shown.
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue