From bbac575fc93c3d9a43039dd5b710bb7197dd4b40 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 15 Jun 2011 19:51:42 +0100 Subject: Now looks for the correct config file :) --- bin/mauveserver | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/mauveserver b/bin/mauveserver index baeee75..2d810b9 100755 --- a/bin/mauveserver +++ b/bin/mauveserver @@ -10,12 +10,12 @@ end require 'mauve/configuration' -configuration_file = ARGV[0] +configuration_file = ARGV.shift configuration_file = [".", "/etc/mauvealert/"].find{|d| File.file?(File.join(d,"mauveserver.conf")) } if configuration_file.nil? configuration_file = File.expand_path(configuration_file) unless File.file?(configuration_file) - STDERR.print "Configuration file #{configuration_file} not found" + STDERR.print "Configuration file #{configuration_file} not found\n" Kernel.exit 1 end -- cgit v1.2.1