From: Thierry Parmentelat Date: Mon, 4 Jan 2010 20:38:05 +0000 (+0000) Subject: recompute config files (sh and py) from xml X-Git-Tag: sfa-0.9-7~11 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=23493b4046a7b9a0a57e5a027c3ab0e2e54f461c;p=sfa.git recompute config files (sh and py) from xml --- diff --git a/sfa/init.d/sfa b/sfa/init.d/sfa index 06051b04..b7e4b7a3 100755 --- a/sfa/init.d/sfa +++ b/sfa/init.d/sfa @@ -10,6 +10,13 @@ # $URL$ # +# recompute /etc/sfa/sfa_config from the xml files +# not too sure this is the right place, should probably be done by sfa-config-tty.. +xml_files="/etc/sfa/default_config.xml" +[ -f /etc/sfa/configs/site.xml ] && xml_files="$xml_files /etc/sfa/configs/site.xml" +plc-config --shell $xml_files > /etc/sfa/sfa_config +plc-config --python $xml_files > /etc/sfa/sfa_config.py + # Source config . /etc/sfa/sfa_config