No more service_name

This commit is contained in:
Kayou
2019-03-11 20:30:16 +01:00
parent 5916e7c8dd
commit 0d668765e5
6 changed files with 3 additions and 34 deletions

View File

@@ -5,6 +5,9 @@
pkg_dependencies="php7.0-fpm sipcalc dnsutils openvpn curl fake-hwclock"
service_name="ynh-vpnclient"
service_checker_name=$service_name"-checker"
to_logs() {
# When yunohost --verbose or bash -x
@@ -200,7 +203,3 @@ function vpnclient_deploy_files_and_services()
ynh_add_systemd_config $service_checker_name "$service_checker_name.service"
}
function service_is_managed_by_yunohost() {
yunohost service status $1 >/dev/null 2>&1
}