1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/BicBucStriim_ynh.git synced 2024-09-03 18:15:53 +02:00

Update restore

This commit is contained in:
ericgaspar 2021-07-07 10:07:16 +02:00
parent f87ed8adff
commit 43cd2b4440

View file

@ -83,6 +83,19 @@ ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
ynh_add_fpm_config --package="$extra_php_dependencies"
#=================================================
# RESTORE THE DATA DIRECTORY
#=================================================
ynh_script_progression --message="Restoring the data directory..." --time --weight=1
ynh_restore_file --origin_path="$datadir" --not_mandatory
mkdir -p $datadir
chmod 750 "$datadir"
chmod -R o-rwx "$datadir"
chown -R $app:www-data "$datadir"
# # Restore sources & data
# src_path="/var/www/${app}"
# cp -a ./sources "$src_path"
@ -90,7 +103,6 @@ ynh_add_fpm_config --package="$extra_php_dependencies"
books_path=/home/$admin/calibre_library
cp -a ./data "$books_path"
#=================================================
# GENERIC FINALIZATION
#=================================================