Use systemctl helper to avoid deadlocks with ynh 2.7 and check path avaibility with no deprecated method

This commit is contained in:
Julien Vaubourg
2017-08-30 14:27:56 +02:00
parent df431e8f78
commit 50c3346c26
4 changed files with 51 additions and 11 deletions

View File

@@ -7,6 +7,7 @@ ynh_setting() {
sudo grep "^${setting}:" "/etc/yunohost/apps/${app}/settings.yml" | sed s/^[^:]\\+:\\s*[\"\']\\?// | sed s/\\s*[\"\']\$//
}
source ./helpers
source ./prerequisites
domain=$(ynh_setting vpnclient domain)
@@ -41,6 +42,6 @@ if [ -z "$(ynh_setting vpnclient dns0)" ]; then
sudo yunohost app setting vpnclient dns1 -v 2001:913::8
fi
sudo systemctl start ynh-vpnclient
ynh_systemctl start ynh-vpnclient
exit 0