From ec0fb4bc5d697241cc46fdeae4cfb088d3c3eb78 Mon Sep 17 00:00:00 2001 From: Kayou Date: Sun, 24 Feb 2019 21:25:41 +0100 Subject: [PATCH] Fixing restore --- scripts/restore | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index 3f0514d..4592357 100644 --- a/scripts/restore +++ b/scripts/restore @@ -27,6 +27,7 @@ domain=$(ynh_app_setting_get $app domain) path_url=$(ynh_app_setting_get $app path) final_path=$(ynh_app_setting_get $app final_path) firmware_nonfree=$(ynh_app_setting_get $app firmware_nonfree) +service_name=$(ynh_app_setting_get $app service_name) #================================================= # CHECK IF THE APP CAN BE RESTORED @@ -122,8 +123,8 @@ ynh_install_app_dependencies "$pkg_dependencies" "$packages" #================================================= ynh_print_info "Restoring the systemd configuration..." -ynh_restore_file "/etc/systemd/system/$app.service" -systemctl enable $app.service +ynh_restore_file "/etc/systemd/system/$service_name.service" +systemctl enable $service_name.service #================================================= # ADVERTISE SERVICE IN ADMIN PANEL