Utilisation de liens symboliques plutt
darcs-hash:20080106204800-61eff-64dbf153ab0fdfd6220f8463fec38f1916ef86b1.gz
This commit is contained in:
parent
4f1426e20b
commit
b3a7d40d7a
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ VPN_NAME=adm
|
||||||
|
|
||||||
if { ! ps -p $(< /var/run/openvpn.${VPN_NAME}.pid) > /dev/null; }; then
|
if { ! ps -p $(< /var/run/openvpn.${VPN_NAME}.pid) > /dev/null; }; then
|
||||||
if fping -q komaz.crans.org; 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
|
if /etc/init.d/openvpn start ${VPN_NAME} > /dev/null; then
|
||||||
echo "Lancement du tunnel vers komaz reussi !"
|
echo "Lancement du tunnel vers komaz reussi !"
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -13,7 +13,7 @@ if { ! ps -p $(< /var/run/openvpn.${VPN_NAME}.pid) > /dev/null; }; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
elif fping -q freebox.crans.org; then
|
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
|
if /etc/init.d/openvpn start ${VPN_NAME} > /dev/null; then
|
||||||
echo "Lancement du tunnel vers freebox reussi !"
|
echo "Lancement du tunnel vers freebox reussi !"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue