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