Commit b38cf476 authored by Jonne Hass's avatar Jonne Hass

rename config/script_server_config.yml to config/script_server.yml to remove redundancy

parent 670127a1
......@@ -23,6 +23,11 @@ if ARGV.length >= 1
if Rails.env == 'script_server' # load from the special script_server_config.yml file
require 'yaml'
script_server_config_file = File.join(Rails.root, 'config', 'script_server_config.yml')
if File.exists? script_server_config_file
$stderr.puts "Deprecation warning: config/script_server_config.yml has been renamed to config/script_server.yml"
else
script_server_config_file = File.join(Rails.root, 'config', 'script_server.yml')
end
begin
print YAML.load_file(script_server_config_file)['script_server'][setting_name]
rescue
......
......@@ -11,6 +11,7 @@ cd $(dirname $(readlink -e $0))/..
# Check if script_server.yml exists
if [ ! -e 'config/script_server.yml' ]; then
echo "INFO: config/script_server_config.yml has been renamed to config/script_server.yml" >&2
echo 'FATAL: config/script_server.yml is missing! Copy over config/script_server.yml.example to config/script_server.yml and edit it properly!' >&2
exit 69
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment