1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cops_ynh.git synced 2024-09-03 18:25:57 +02:00

Update restore

This commit is contained in:
ericgaspar 2021-12-09 16:15:04 +01:00
parent cc6896ce59
commit 55542eaac1
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -64,18 +64,21 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"
# #================================================= #=================================================
# # RESTORE THE DATA DIRECTORY # RESTORE THE DATA DIRECTORY
# #================================================= #=================================================
# ynh_script_progression --message="Restoring the data directory..." --time --weight=1 ynh_script_progression --message="Creating a calibre directory..." --weight=1
# ynh_restore_file --origin_path="$datadir" --not_mandatory #build multimedia directory
ynh_multimedia_build_main_dir
ynh_multimedia_addaccess $app
# mkdir -p $datadir calibre_dir=/home/yunohost.multimedia/share/eBook
ynh_app_setting_set --app=$app --key=calibre_dir --value=$calibre_dir
# chmod 750 "$datadir" chmod 750 "$calibre_dir"
# chmod -R o-rwx "$datadir" chmod -R o-rwx "$calibre_dir"
# chown -R $app:www-data "$datadir" chown -R $app:www-data "$calibre_dir"
#================================================= #=================================================
# RESTORE THE PHP-FPM CONFIGURATION # RESTORE THE PHP-FPM CONFIGURATION