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

fix sync_home restore

This commit is contained in:
yalh76 2021-04-06 20:57:05 +02:00
parent 6d596a2bc1
commit a2c29eb5eb

View file

@ -90,6 +90,9 @@ chown -R "$app": $final_path
#=================================================
ynh_script_progression --message="Recreating sync directory..."
# Use --not_mandatory for the data directory, because if the backup has been made with BACKUP_CORE_ONLY, there's no data into the backup.
ynh_restore_file --origin_path="$sync_home" --not_mandatory
# Make directories and set rights
mkdir -p "$sync_home"
chown -R "$app": "$sync_home"