mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
openvpn: Move verify script out of configuration directory.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
usr/lib/openvpn/plugins/openvpn-plugin-auth-pam.so
|
||||
#usr/lib/openvpn/plugins/openvpn-plugin-down-root.la
|
||||
usr/lib/openvpn/plugins/openvpn-plugin-down-root.so
|
||||
usr/lib/openvpn/verify
|
||||
usr/sbin/openvpn
|
||||
#usr/share/doc/openvpn
|
||||
#usr/share/doc/openvpn/COPYING
|
||||
@@ -31,4 +32,3 @@ var/ipfire/ovpn/ovpn-leases.db
|
||||
var/ipfire/ovpn/ovpnconfig
|
||||
var/ipfire/ovpn/scripts
|
||||
var/ipfire/ovpn/settings
|
||||
var/ipfire/ovpn/verify
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
etc/system-release
|
||||
etc/issue
|
||||
opt/pakfire/lib/functions.pl
|
||||
usr/lib/openvpn/verify
|
||||
var/ipfire/header.pl
|
||||
var/ipfire/langs
|
||||
var/ipfire/ovpn/verify
|
||||
|
||||
@@ -38,6 +38,12 @@ extract_files
|
||||
|
||||
# Start services
|
||||
|
||||
# Replace path to verify script.
|
||||
if [ -r "/var/ipfire/ovpn/server.conf" ]; then
|
||||
sed -e "s@^tls-verify.*@tls-verify /usr/lib/openvpn/verify@g" \
|
||||
-i /var/ipfire/ovpn/server.conf
|
||||
fi
|
||||
|
||||
# Update Language cache
|
||||
perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user