1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/shiori_ynh.git synced 2024-09-03 20:26:17 +02:00

Update restore

This commit is contained in:
ericgaspar 2022-01-12 09:52:59 +01:00
parent e3800b8a43
commit 24b32007fe
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -34,7 +34,7 @@ datadir=$(ynh_app_setting_get --app=$app --key=datadir)
#=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=1
test ! -d $final_path || ynh_die --message="There is already a directory: $final_path "
test ! -d $final_path || ynh_die --message="There is already a directory: $final_path"
#=================================================
# STANDARD RESTORATION STEPS
@ -63,6 +63,7 @@ ynh_restore_file --origin_path="$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod +x "$final_path/shiori"
#=================================================
# RESTORE THE DATA DIRECTORY