1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cops_ynh.git synced 2024-09-03 18:25:57 +02:00
This commit is contained in:
ericgaspar 2021-12-09 16:54:37 +01:00
parent a7b7c959d1
commit 548256a84e
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 5 additions and 2 deletions

0
doc/DISCLAIMER.md Normal file
View file

View 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

View file

@ -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

View file

@ -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