mirror of
https://github.com/YunoHost-Apps/cops_ynh.git
synced 2024-09-03 18:25:57 +02:00
Fix
This commit is contained in:
parent
a7b7c959d1
commit
548256a84e
4 changed files with 5 additions and 2 deletions
0
doc/DISCLAIMER.md
Normal file
0
doc/DISCLAIMER.md
Normal file
|
@ -43,7 +43,7 @@ ynh_backup --src_path="$final_path"
|
|||
# BACKUP THE DATA DIR
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="$calibre_dir" --is_big
|
||||
#ynh_backup --src_path="$calibre_dir" --is_big
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE NGINX CONFIGURATION
|
||||
|
|
|
@ -28,6 +28,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
|
|||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||
calibre_dir=$(ynh_app_setting_get --app=$app --key=calibre_dir)
|
||||
|
||||
#=================================================
|
||||
# CHECK IF THE APP CAN BE RESTORED
|
||||
|
|
|
@ -58,7 +58,9 @@ ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
|||
|
||||
if [ ! -e "$calibre_dir" ]; then
|
||||
ynh_print_info "Create calibre library folder $calibre_dir"
|
||||
mkdir -p $calibre_dir
|
||||
ynh_multimedia_build_main_dir
|
||||
ynh_multimedia_addaccess $app
|
||||
calibre_dir=/home/yunohost.multimedia/share/eBook
|
||||
chown -R $app:www-data $calibre_dir
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue