mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 04:22:58 +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
|
||||
|
||||
# Converter script for old openvpn clients
|
||||
my %net=();
|
||||
my %ovpnconfig=();
|
||||
my @serverconf=();
|
||||
my $greennet;
|
||||
my $greensubnet;
|
||||
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"){
|
||||
$running='on';
|
||||
system('/usr/local/bin/openvpnctrl', '-k');
|
||||
|
||||
Reference in New Issue
Block a user