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:
parent
6d596a2bc1
commit
a2c29eb5eb
1 changed files with 3 additions and 0 deletions
|
@ -90,6 +90,9 @@ chown -R "$app": $final_path
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Recreating sync directory..."
|
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
|
# Make directories and set rights
|
||||||
mkdir -p "$sync_home"
|
mkdir -p "$sync_home"
|
||||||
chown -R "$app": "$sync_home"
|
chown -R "$app": "$sync_home"
|
||||||
|
|
Loading…
Add table
Reference in a new issue