Store service_name

This commit is contained in:
Kayou 2019-02-27 21:44:39 +01:00
parent d5c632e7db
commit d26f296dd5
No known key found for this signature in database
GPG Key ID: 823A2CBE071D3126

View File

@ -64,6 +64,7 @@ ynh_print_info "Storing installation settings..."
ynh_app_setting_set "$app" domain "$domain"
ynh_app_setting_set "$app" final_path "$final_path"
ynh_app_setting_set "$app" service_name "$service_name"
#=================================================
# STANDARD MODIFICATIONS
@ -97,12 +98,12 @@ systemctl reload nginx
# main service
yunohost service add $service_name --description "tunnels the internet traffic through a VPN" --need_lock
yunohost service add $service_name --description "Tunnels the internet traffic through a VPN" --need_lock
yunohost service enable $service_name
# checker service
yunohost service add $service_checker_name --description "makes sure that the VPN service is running" --need_lock
yunohost service add $service_checker_name --description "Makes sure that the VPN service is running" --need_lock
yunohost service start $service_checker_name
yunohost service enable $service_checker_name
systemctl start $service_checker_name.timer