From 73e5df77584685b14bc698f1fa7593eb7d6cdd68 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Tue, 30 Jun 2009 23:31:20 +0000 Subject: [PATCH] old code would nuke default_config.xml, this version will add it to a local configs/site.xml safely. --- plcrt.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plcrt.spec b/plcrt.spec index 000e99b..0308dae 100644 --- a/plcrt.spec +++ b/plcrt.spec @@ -28,6 +28,7 @@ Group: Applications/System Requires: python Requires: perl Requires: rt3 +Requires: rt3-mailgate Requires: myplc %description @@ -71,8 +72,9 @@ if ! grep '' /etc/planetlab/default_config.xml ; then sed -i 's|| \n RT Configuration\n RT\n \n \n Enabled\n false\n Enable on this machine.\n \n \n Hostname\n localhost.localdomain\n The fully qualified hostname.\n \n \n IP Address\n \n The IP address of the RT server.\n \n \n \n |' /etc/planetlab/default_config.xml fi -plc-config --save /etc/planetlab/default_config.xml \ - --category plc_rt --variable enabled --value true +mkdir -p /etc/planetlab/configs +plc-config --save /etc/planetlab/configs/site.xml \ + --category plc_rt --variable enabled --value true %changelog * Fri Jun 26 2009 Stephen Soltesz - PLCRT-1.0-1 -- 2.43.0