From f66e0e197bcacf66d8438ca4a1514d386c37990e Mon Sep 17 00:00:00 2001 From: pks Date: Sun, 21 Mar 2021 15:31:00 +0100 Subject: hosts.txt file --- up-www.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'up-www.rb') diff --git a/up-www.rb b/up-www.rb index 53061b8..723ebf0 100755 --- a/up-www.rb +++ b/up-www.rb @@ -15,7 +15,7 @@ end configure do hosts = {} - ReadFile.new("./hosts.txt").readlines.each { |line| + ReadFile.new("#{File.dirname(__FILE__)}/hosts.txt").readlines.each { |line| hosts[line.split[0]] = Host.new line } puts "> loaded #{hosts.keys.size} hosts" -- cgit v1.2.3