Commit eb964f4b authored by Julien Muchembled's avatar Julien Muchembled

Fix server tunnels on dists for which 'ip' command is not in /bin (e.g. Fedora)

parent 2f1f2c15
......@@ -2,6 +2,9 @@
import os, sys
if os.environ['script_type'] == 'up':
# OpenVPN unsets PATH before calling hooks
# which is equivalent to set /bin:/usr/bin
os.environ['PATH'] = '/bin:/sbin:/usr/bin:/usr/sbin'
os.execlp('ip', 'ip', 'link', 'set', os.environ['dev'], 'up')
# Write into pipe external ip address received
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment