mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
OpenVPN ccd: fix creation of ccd directory via ovpn-ccd-convert script
Fixes #10263.
This commit is contained in:
committed by
Michael Tremer
parent
36e1dc20f4
commit
1d0fcb09ed
@@ -1,13 +1,15 @@
|
|||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
|
# Converter script for old openvpn clients
|
||||||
my %net=();
|
my %net=();
|
||||||
my %ovpnconfig=();
|
my %ovpnconfig=();
|
||||||
my @serverconf=();
|
my @serverconf=();
|
||||||
my $greennet;
|
my $greennet;
|
||||||
my $greensubnet;
|
my $greensubnet;
|
||||||
my $running='off';
|
my $running='off';
|
||||||
require '/var/ipfire/general-functions.pl';
|
|
||||||
|
|
||||||
|
require '/var/ipfire/general-functions.pl';
|
||||||
|
unless (-d "${General::swroot}/ovpn/ccd") { system("mkdir ${General::swroot}/ovpn/ccd"); }
|
||||||
|
system ("chown nobody.nobody ${General::swroot}/ovpn/ccd");
|
||||||
if ( -e "/var/run/openvpn.pid"){
|
if ( -e "/var/run/openvpn.pid"){
|
||||||
$running='on';
|
$running='on';
|
||||||
system('/usr/local/bin/openvpnctrl', '-k');
|
system('/usr/local/bin/openvpnctrl', '-k');
|
||||||
|
|||||||
Reference in New Issue
Block a user