From a2c29eb5eb97738efe864a53eee6d05cc046a612 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 6 Apr 2021 20:57:05 +0200 Subject: [PATCH 1/2] fix sync_home restore --- scripts/restore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/restore b/scripts/restore index 323bb7b..a1293f9 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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" From 201eab3c30f6a72de8c704190e66e11baf517a8a Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 6 Apr 2021 21:11:13 +0200 Subject: [PATCH 2/2] Update version number --- check_process | 6 +++++- manifest.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/check_process b/check_process index a1a336f..1707ef5 100644 --- a/check_process +++ b/check_process @@ -36,10 +36,12 @@ upgrade=1 from_commit=89687d0fb06f4743328b1198c7861d7d9d624641 # 1.13.1~ynh1 upgrade=1 from_commit=50e824fe22fb9ba82c8a7606afb03fa3f9998463 + # 1.14.0~ynh1 + upgrade=1 from_commit=ae0a88df0bf4a3d684f95e21245ee1e0de4d54f4 backup_restore=1 multi_instance=0 port_already_use=0 - change_url=0 + change_url=1 ;;; Options Email=yalh@yahoo.com Notification=all @@ -64,3 +66,5 @@ Notification=all name=1.12.0~ynh1 ; commit=50e824fe22fb9ba82c8a7606afb03fa3f9998463 name=1.13.1~ynh1 + ; commit=ae0a88df0bf4a3d684f95e21245ee1e0de4d54f4 + name=1.14.0~ynh1 diff --git a/manifest.json b/manifest.json index c9c578e..43ab0c3 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Continuous file synchronization program.", "fr": "Programme de synchronisation de fichiers en continu." }, - "version": "1.14.0~ynh1", + "version": "1.14.0~ynh2", "url": "https://syncthing.net/", "license": "MPL-2.0", "maintainer": [