Subversion Repositories web_pages

Rev

Rev 16 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16 Rev 18
Line 53... Line 53...
53
our $VERSION = "1.0.0";
53
our $VERSION = "1.0.0";
54
 
54
 
55
# Default config file name if not specified on command line. Defaults to 'routers.json' in the script directory
55
# Default config file name if not specified on command line. Defaults to 'routers.json' in the script directory
56
my $configFileName = $FindBin::RealBin . '/routers.json';
56
my $configFileName = $FindBin::RealBin . '/routers.json';
57
# fields used in the router configuration
57
# fields used in the router configuration
58
my @fields = ( 'url', 'apiKey', 'apiSecret', 'ovpnIndex', 'template', 'hostname', 'localPort' );
58
my @fields = ( 'url', 'apiKey', 'apiSecret', 'ovpnIndex', 'template', 'hostname', 'localPort', 'downloadToken' );
59
 
59
 
60
# Check if running as root
60
# Check if running as root
61
if ($> != 0) {
61
if ($> != 0) {
62
   die "Error: This script must be run as root.\n";
62
   die "Error: This script must be run as root.\n";
63
}
63
}