summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xup-www.rb2
1 files changed, 1 insertions, 1 deletions
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"