From fee84fa727fa6d989f4ac71f64ac26863ad018d0 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sun, 16 Dec 2018 18:20:35 +0100 Subject: [PATCH] Permission fix --- README.md | 12 ++++++++++-- scripts/install | 13 ++++++++----- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a9c6ac2..fd5b710 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,15 @@ Calibre-Web is a web app providing a clean interface for browsing, reading and d ![screenshot](https://raw.githubusercontent.com/janeczku/docker-calibre-web/master/screenshot.png) +## Backup library + +By default, backup process will not backup calibre library (backup_core_only logic). +You may activate backup of the library with +``` +yunohost app setting calibreweb backup_core_only -v 0 +``` + + ## Limitations * No LDAP support @@ -40,8 +49,7 @@ chmod o+rw path/to/library Developers info ---------------- -**Only if you want to use a testing branch for coding, instead of merging directly into master.** -Please do your pull request to the [testing branch](https://github.com/YunoHost-Apps/calibreweb_ynh/tree/testing). +Please do your pull request to the [testing branch](https://github.com/Krakinou/calibreweb_ynh/tree/Testing). To try the testing branch, please proceed like that. ``` diff --git a/scripts/install b/scripts/install index c9d3b9b..ba5ef48 100755 --- a/scripts/install +++ b/scripts/install @@ -116,9 +116,7 @@ ynh_system_user_create $app ynh_add_systemd_config #================================================= -# GENERIC FINALIZATION -#================================================= -# SECURE FILES AND DIRECTORIES +# CREATE FILES AND DIRECTORIES #================================================= #Check if library folder exists. If not create it @@ -134,8 +132,6 @@ if [ ! -e "$calibre_dir"/metadata.db ]; then chown $app:$app $calibre_dir/* fi -# Set permissions to app files -chown -R root: $final_path #================================================= @@ -172,6 +168,13 @@ ynh_print_OFF sqlite3 $final_path/app.db "UPDATE user SET password='$(python ../conf/generate_password_hash.py $pass $final_path/vendor)' WHERE ID=1" ynh_print_ON +#================================================= +# SECURE FILES AND DIRECTORIES +#================================================= + +# Set permissions to app files +chown -R root: $final_path +chown calibreweb: $final_path/app.db #=================================================