# HG changeset patch # User virii # Date 2013-12-23 17:46:38 # Node ID 5b4fc2d5772f5c34d513bd9588965ab59c34acb6 # Parent 8311080e79d429d61d969ea216d5949f8a4fbab6 config files can now be passed via command line arguments diff --git a/Scripts/update_server.pl b/Scripts/update_server.pl --- a/Scripts/update_server.pl +++ b/Scripts/update_server.pl @@ -10,7 +10,8 @@ by virii use HTTP::Tiny; use IO::Socket; ######## [defaults] ######## -@configs = qw(torrc torrc2); # every config file! like: torrc torrc0 torrc1 +@configs = @ARGV if @ARGV; # perl updater_server.pl torrc torrc0 torrc1 +@configs = qw(torrc torrc2) unless @ARGV; # OR hardcode every config file! like: torrc torrc0 torrc1 $data_dir = '/var/lib/tor'; # default data dir $pidfile = '/var/run/tor/tor.pid'; # default pid file $API_url = 'http://enn.lu'; # will be ignored if /etc/ennstatus_updater.conf is present