mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
permissions for metadata.db
This commit is contained in:
parent
56f54dc70f
commit
20fd831130
1 changed files with 6 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
file:
|
file:
|
||||||
path: "{{ calibre_dbpath }}"
|
path: "{{ calibre_dbpath }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0666
|
mode: 0755
|
||||||
|
|
||||||
- name: Check if sample book exists in /opt/iiab/downloads
|
- name: Check if sample book exists in /opt/iiab/downloads
|
||||||
stat:
|
stat:
|
||||||
|
@ -23,3 +23,8 @@
|
||||||
- name: Incorporate sample book into Calibre DB (mandatory since Calibre 3.x)
|
- name: Incorporate sample book into Calibre DB (mandatory since Calibre 3.x)
|
||||||
shell: "calibredb add {{ content_base }}/downloads/{{ calibre_sample_book }} --with-library {{ calibre_dbpath }}"
|
shell: "calibredb add {{ content_base }}/downloads/{{ calibre_sample_book }} --with-library {{ calibre_dbpath }}"
|
||||||
when: sample_bk.stat.exists and not calibre_db.stat.exists
|
when: sample_bk.stat.exists and not calibre_db.stat.exists
|
||||||
|
|
||||||
|
- name: Setting permissions on /library/calibre/metadata.db
|
||||||
|
file:
|
||||||
|
path: "{{ calibre_dbpath }}/metadata.db"
|
||||||
|
mode: 0666
|
||||||
|
|
Loading…
Reference in a new issue