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:
parent
c5505c5bc7
commit
fee84fa727
2 changed files with 18 additions and 7 deletions
12
README.md
12
README.md
|
@ -19,6 +19,15 @@ Calibre-Web is a web app providing a clean interface for browsing, reading and d
|
|||
|
||||

|
||||
|
||||
## 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.
|
||||
```
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue