Utilisation de liens symboliques plutt

darcs-hash:20080106204800-61eff-64dbf153ab0fdfd6220f8463fec38f1916ef86b1.gz
This commit is contained in:
Stephane Glondu 2008-01-06 21:48:00 +01:00
parent 4f1426e20b
commit b3a7d40d7a

View file

@ -4,7 +4,7 @@ VPN_NAME=adm
if { ! ps -p $(< /var/run/openvpn.${VPN_NAME}.pid) > /dev/null; }; then
if fping -q komaz.crans.org; then
sed -i'~' 's/freebox/komaz/g' /etc/openvpn/${VPN_NAME}.conf
ln -sf komaz.conf /etc/openvpn/${VPN_NAME}.conf
if /etc/init.d/openvpn start ${VPN_NAME} > /dev/null; then
echo "Lancement du tunnel vers komaz reussi !"
exit 0
@ -13,7 +13,7 @@ if { ! ps -p $(< /var/run/openvpn.${VPN_NAME}.pid) > /dev/null; }; then
exit 1
fi
elif fping -q freebox.crans.org; then
sed -i'~' 's/komaz/freebox/g' /etc/openvpn/${VPN_NAME}..conf
ln -sf freebox.conf /etc/openvpn/${VPN_NAME}.conf
if /etc/init.d/openvpn start ${VPN_NAME} > /dev/null; then
echo "Lancement du tunnel vers freebox reussi !"
exit 0