generate ruby config via plc-config. Required by puppet
[myplc.git] / plc.init
index 0617516..2e9e825 100755 (executable)
--- a/plc.init
+++ b/plc.init
@@ -81,6 +81,9 @@ reload ()
     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/plc_config.rb ] ; then
+       plc-config --ruby >/etc/planetlab/plc_config.rb
+    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