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:
parent
f87ed8adff
commit
43cd2b4440
1 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue