Fake ynh_restore_file for prepare to this futur helper

This commit is contained in:
Maniack Crudelis 2017-06-05 13:33:09 +02:00 committed by GitHub
parent 2aff2e83d6
commit eafe4235f4

View file

@ -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"
}