mirror of
https://github.com/YunoHost-Apps/syncthing_ynh.git
synced 2024-09-03 20:26:23 +02:00
Merge pull request #69 from YunoHost-Apps/testing
fix sync_home restore
This commit is contained in:
commit
a68fb4de96
3 changed files with 9 additions and 2 deletions
|
@ -36,10 +36,12 @@
|
||||||
upgrade=1 from_commit=89687d0fb06f4743328b1198c7861d7d9d624641
|
upgrade=1 from_commit=89687d0fb06f4743328b1198c7861d7d9d624641
|
||||||
# 1.13.1~ynh1
|
# 1.13.1~ynh1
|
||||||
upgrade=1 from_commit=50e824fe22fb9ba82c8a7606afb03fa3f9998463
|
upgrade=1 from_commit=50e824fe22fb9ba82c8a7606afb03fa3f9998463
|
||||||
|
# 1.14.0~ynh1
|
||||||
|
upgrade=1 from_commit=ae0a88df0bf4a3d684f95e21245ee1e0de4d54f4
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=0
|
multi_instance=0
|
||||||
port_already_use=0
|
port_already_use=0
|
||||||
change_url=0
|
change_url=1
|
||||||
;;; Options
|
;;; Options
|
||||||
Email=yalh@yahoo.com
|
Email=yalh@yahoo.com
|
||||||
Notification=all
|
Notification=all
|
||||||
|
@ -64,3 +66,5 @@ Notification=all
|
||||||
name=1.12.0~ynh1
|
name=1.12.0~ynh1
|
||||||
; commit=50e824fe22fb9ba82c8a7606afb03fa3f9998463
|
; commit=50e824fe22fb9ba82c8a7606afb03fa3f9998463
|
||||||
name=1.13.1~ynh1
|
name=1.13.1~ynh1
|
||||||
|
; commit=ae0a88df0bf4a3d684f95e21245ee1e0de4d54f4
|
||||||
|
name=1.14.0~ynh1
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Continuous file synchronization program.",
|
"en": "Continuous file synchronization program.",
|
||||||
"fr": "Programme de synchronisation de fichiers en continu."
|
"fr": "Programme de synchronisation de fichiers en continu."
|
||||||
},
|
},
|
||||||
"version": "1.14.0~ynh1",
|
"version": "1.14.0~ynh2",
|
||||||
"url": "https://syncthing.net/",
|
"url": "https://syncthing.net/",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"maintainer": [
|
"maintainer": [
|
||||||
|
|
|
@ -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