1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/calibreweb_ynh.git synced 2024-09-03 18:16:20 +02:00

Permission fix

This commit is contained in:
Krakinou 2018-12-16 18:20:35 +01:00
parent c5505c5bc7
commit fee84fa727
2 changed files with 18 additions and 7 deletions

View file

@ -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) ![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 ## Limitations
* No LDAP support * No LDAP support
@ -40,8 +49,7 @@ chmod o+rw path/to/library
Developers info 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/Krakinou/calibreweb_ynh/tree/Testing).
Please do your pull request to the [testing branch](https://github.com/YunoHost-Apps/calibreweb_ynh/tree/testing).
To try the testing branch, please proceed like that. To try the testing branch, please proceed like that.
``` ```

View file

@ -116,9 +116,7 @@ ynh_system_user_create $app
ynh_add_systemd_config ynh_add_systemd_config
#================================================= #=================================================
# GENERIC FINALIZATION # CREATE FILES AND DIRECTORIES
#=================================================
# SECURE FILES AND DIRECTORIES
#================================================= #=================================================
#Check if library folder exists. If not create it #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/* chown $app:$app $calibre_dir/*
fi 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" 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 ynh_print_ON
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions to app files
chown -R root: $final_path
chown calibreweb: $final_path/app.db
#================================================= #=================================================