mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 18:03:06 +02:00
Merge remote-tracking branch 'origin/next' into thirteen
This commit is contained in:
@@ -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');
|
||||
@@ -46,3 +48,4 @@ if ($running eq 'on')
|
||||
{
|
||||
system('/usr/local/bin/openvpnctrl', '-s');
|
||||
}
|
||||
system ("chown nobody:nobody /var/ipfire/ovpn/ccd/*");
|
||||
|
||||
Reference in New Issue
Block a user