Store service_name
This commit is contained in:
parent
d5c632e7db
commit
d26f296dd5
@ -64,6 +64,7 @@ ynh_print_info "Storing installation settings..."
|
|||||||
|
|
||||||
ynh_app_setting_set "$app" domain "$domain"
|
ynh_app_setting_set "$app" domain "$domain"
|
||||||
ynh_app_setting_set "$app" final_path "$final_path"
|
ynh_app_setting_set "$app" final_path "$final_path"
|
||||||
|
ynh_app_setting_set "$app" service_name "$service_name"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD MODIFICATIONS
|
# STANDARD MODIFICATIONS
|
||||||
@ -97,12 +98,12 @@ systemctl reload nginx
|
|||||||
|
|
||||||
# main service
|
# 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
|
yunohost service enable $service_name
|
||||||
|
|
||||||
# checker service
|
# 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 start $service_checker_name
|
||||||
yunohost service enable $service_checker_name
|
yunohost service enable $service_checker_name
|
||||||
systemctl start $service_checker_name.timer
|
systemctl start $service_checker_name.timer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user