Commit f3c0eacf authored by Runar Borge's avatar Runar Borge

Move rude-list.conf placement to variable

In the current implementation the path to rude-list.conf is hardcoded
This will move this to a variable in start.cfg
parent b639eed0
......@@ -4,10 +4,10 @@
source $(realpath $(dirname "${BASH_SOURCE[0]}")/../etc/start.cfg)
if test -s /etc/mp-rude/rude-list.conf ; then # distributed by puppet
if test ! -s $root/etc/rude.conf -o /etc/mp-rude/rude-list.conf -nt $root/etc/rude.conf; then
if test -s $local_rude_list ; then # distributed by puppet
if test ! -s $root/etc/rude.conf -o $local_rude_list -nt $root/etc/rude.conf; then
cd $root/etc
$root/bin/rude-config-maker -target "$node_name" /etc/mp-rude/rude-list.conf
$root/bin/rude-config-maker -target "$node_name" $local_rude_list
fi
else # get config from server
......
......@@ -17,6 +17,7 @@ ntp="$root/bin/ntp-jitter.sh"
crude="$root/bin/crude"
rude="$root/bin/rude"
date=`env TZ=Europe/Oslo date +%Y-%m-%d`
local_rude_list="/etc/mp-rude/rude-list.conf"
if test -f $root/etc/parms.cfg; then
source $root/etc/parms.cfg
......
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