From 17935b21deb6a759d1c3be194640d2c37fc87201 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Wed, 8 Jul 2009 19:35:57 +0000 Subject: [PATCH] upudate default fields on initial install until myplc default_config.xml is tagged. --- plcrt.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plcrt.spec b/plcrt.spec index 9c6f09c..6d69086 100644 --- a/plcrt.spec +++ b/plcrt.spec @@ -69,11 +69,14 @@ if grep 'pam_loginuid.so' /etc/pam.d/crond ; then fi 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 username\n root\n The user name for RT access.\n \n \n password\n password\n password to the rt user.\n \n -\n Database Password\n \n Password to use when accessing the RT database.\n \n \n \n |' /etc/planetlab/default_config.xml + 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 username\n root\n The user name for RT access.\n \n \n password\n password\n password to the rt user.\n \n \n email list\n root+list@localhost.localdomain\n \n \n \n Database Password\n \n Password to use when accessing the RT database.\n \n \n \n |' /etc/planetlab/default_config.xml fi mkdir -p /etc/planetlab/configs +plc-config --category plc_rt --variable cc_address \ + --value 'root+list@localhost.localdomain'\ + --save /etc/planetlab/default_config.xml /etc/planetlab/default_config.xml + plc-config --category plc_rt --variable enabled --value true \ --save /etc/planetlab/configs/site.xml /etc/planetlab/default_config.xml -- 2.43.0