Browse Source

Add sipcalc for ipv6 checks

Julien VAUBOURG 10 years ago
parent
commit
9ee92147e4
3 changed files with 3 additions and 2 deletions
  1. 1 0
      conf/init_ynh-vpnclient
  2. 1 1
      scripts/install
  3. 1 1
      scripts/remove

+ 1 - 0
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

+ 1 - 1
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}"

+ 1 - 1
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