From 9ee92147e4e1cb740aa7011603793887dd9e2e56 Mon Sep 17 00:00:00 2001 From: Julien VAUBOURG Date: Fri, 14 Nov 2014 20:34:07 +0100 Subject: [PATCH] Add sipcalc for ipv6 checks --- conf/init_ynh-vpnclient | 1 + scripts/install | 2 +- scripts/remove | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/init_ynh-vpnclient b/conf/init_ynh-vpnclient index 1bc066e..09bb7e0 100644 --- a/conf/init_ynh-vpnclient +++ b/conf/init_ynh-vpnclient @@ -206,6 +206,7 @@ case "${1}" in (i=0 && false) || while [ $? -ne 0 ]; do sleep 1 && (( i++ )) + [ ${i} -gt 20 ] && stop_openvpn [ ${i} -gt 20 ] && exit 1 ip link show dev tun0 &> /dev/null done diff --git a/scripts/install b/scripts/install index 72bcd61..910b884 100644 --- a/scripts/install +++ b/scripts/install @@ -57,7 +57,7 @@ if [ ! $? -eq 0 ]; then fi # Install packages -sudo apt-get --assume-yes --force-yes install openvpn php5-fpm +sudo apt-get --assume-yes --force-yes install openvpn php5-fpm sipcalc # Save arguments sudo yunohost app setting vpnclient server_name -v "${server_name}" diff --git a/scripts/remove b/scripts/remove index 7648c57..ed3fc5e 100644 --- a/scripts/remove +++ b/scripts/remove @@ -29,6 +29,6 @@ sudo userdel -f vpnadmin # Remove packets # The yunohost policy is currently to not uninstall packets (dependency problems) -## sudo apt-get --assume-yes --force-yes remove openvpn php5-fpm +## sudo apt-get --assume-yes --force-yes remove openvpn php5-fpm sipcalc exit 0