At the end of the upgrade, restart vpnclient only if it's already active

This commit is contained in:
Alexandre Aubin 2018-12-02 23:27:35 +01:00
parent 1c06d02d49
commit 2f04d16d4f

View File

@ -86,4 +86,7 @@ sudo rm -rf ${tmpdir}
ynh_systemctl reload php5-fpm
ynh_systemctl reload nginx
ynh_systemctl restart ynh-vpnclient
if systemctl is-active ynh-vpnclient >/dev/null;
then
ynh_systemctl restart ynh-vpnclient
fi