From: Stephen Soltesz Date: Mon, 7 Apr 2008 20:36:29 +0000 (+0000) Subject: Added code to generate the plc_config.py file for inside of myplc environment. X-Git-Tag: MyPLC-4.2-5~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=87b27c1c78df1afa2d8d94e0456845078773dde4;p=myplc.git Added code to generate the plc_config.py file for inside of myplc environment. I hope this would be useful for addon scripts such as monitor or others. --- diff --git a/guest.init b/guest.init index e95c34e..309523e 100755 --- a/guest.init +++ b/guest.init @@ -77,6 +77,9 @@ reload () if [ -n "$force" -o /etc/planetlab/plc_config.xml -nt /etc/planetlab/plc_config ] ; then plc-config --shell >/etc/planetlab/plc_config fi + if [ -n "$force" -o /etc/planetlab/plc_config.xml -nt /etc/planetlab/plc_config.py ] ; then + plc-config --python >/etc/planetlab/plc_config.py + fi if [ -n "$force" -o /etc/planetlab/plc_config.xml -nt /etc/planetlab/php/plc_config.php ] ; then mkdir -p /etc/planetlab/php plc-config --php >/etc/planetlab/php/plc_config.php