From eafe4235f4be2527c90261a7dd1d2928543f3f8b Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Mon, 5 Jun 2017 13:33:09 +0200 Subject: [PATCH] Fake ynh_restore_file for prepare to this futur helper --- scripts/_common.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index 86feec5..069747c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -638,3 +638,10 @@ ynh_remove_systemd_config () { ynh_secure_remove "$finalsystemdconf" fi } + +##################################### + +# This is not an official helper, just an abstract helper to prepare to the new one. +ynh_restore_file () { + sudo cp -a "${backup_dir}$1" "$1" +}