Added script_security initialisation in initscript (#458594 #c20)

epel8
Robert Scheck 15 years ago
parent 50efe3fd85
commit 3a32e51ddc

@ -1,11 +1,12 @@
--- 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 @@
@@ -151,7 +151,12 @@
. $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
+ script_security=''
+ if [ -z "$( grep '^[[:space:]]*script-security[[:space:]]' $c )" ]; then
+ script_security="--script-security 2"
+ fi

@ -4,7 +4,7 @@
Name: openvpn
Version: 2.1
Release: 0.36%{?prerelease:.%{prerelease}}%{?dist}
Release: 0.37%{?prerelease:.%{prerelease}}%{?dist}
Summary: A full-featured SSL VPN solution
URL: http://openvpn.net/
#Source0: http://openvpn.net/beta/%{name}-%{version}%{?prerelease:_%{prerelease}}.tar.gz
@ -170,6 +170,9 @@ fi
%config %dir %{_sysconfdir}/%{name}/
%changelog
* Sun Oct 25 2009 Robert Scheck <robert@fedoraproject.org> 2.1-0.37.rc20
- Added script_security initialisation in initscript (#458594 #c20)
* Fri Oct 02 2009 Steven Pritchard <steve@kspei.com> 2.1-0.36.rc20
- Update to 2.1_rc20.

Loading…
Cancel
Save