1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

Fixing restore

This commit is contained in:
Kayou 2019-02-24 21:25:41 +01:00
parent 7031d015be
commit ec0fb4bc5d
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126

View file

@ -27,6 +27,7 @@ domain=$(ynh_app_setting_get $app domain)
path_url=$(ynh_app_setting_get $app path) path_url=$(ynh_app_setting_get $app path)
final_path=$(ynh_app_setting_get $app final_path) final_path=$(ynh_app_setting_get $app final_path)
firmware_nonfree=$(ynh_app_setting_get $app firmware_nonfree) 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 # 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_print_info "Restoring the systemd configuration..."
ynh_restore_file "/etc/systemd/system/$app.service" ynh_restore_file "/etc/systemd/system/$service_name.service"
systemctl enable $app.service systemctl enable $service_name.service
#================================================= #=================================================
# ADVERTISE SERVICE IN ADMIN PANEL # ADVERTISE SERVICE IN ADMIN PANEL