parent
479939eb37
commit
8bfe673024
@ -0,0 +1,15 @@
|
||||
--- openvpn-2.1_rc9/sample-scripts/openvpn.init.orig 2008-06-13 02:54:58.000000000 -0500
|
||||
+++ openvpn-2.1_rc9/sample-scripts/openvpn.init 2008-08-13 13:51:46.000000000 -0500
|
||||
@@ -151,7 +151,11 @@
|
||||
. $bn.sh
|
||||
fi
|
||||
rm -f $piddir/$bn.pid
|
||||
- $openvpn --daemon --writepid $piddir/$bn.pid --config $c --cd $work
|
||||
+ # Handle backward compatibility, see Red Hat Bugzilla ID #458594
|
||||
+ if [ -z "$( grep '^[[:space:]]*script-security[[:space:]]' $c )" ]; then
|
||||
+ script_security="--script-security 2"
|
||||
+ fi
|
||||
+ $openvpn --daemon --writepid $piddir/$bn.pid --config $c --cd $work $script_security
|
||||
if [ $? = 0 ]; then
|
||||
successes=1
|
||||
else
|
Loading…
Reference in new issue