Mailinglist Archive: yast-devel (32 mails)

< Previous Next >
[yast-devel] replacing string at install time
  • From: "S Kalyanasundaram" <skalyanasundaram@xxxxxxxxxx>
  • Date: Wed, 23 May 2007 00:02:25 -0600
  • Message-id: <46542571.79F2.0086.0@xxxxxxxxxx>
Hi all,
   I need to set a value for a variable in a file during the install time. (need to replace FLAG="true" by FLAG="no" in /etc/someconf.conf file). I thought i can place the [replace -s 'FLAG="true"' 'FLAG="no"' -- /etc/someconf.conf] in my script which is called by yast GUI. But it seems replace command is missing in SLES. So i have planned  to keep like
sed 's/FLAG="true"/FLAG="false"/g' /etc/someconf.conf > tmp && mv tmp /etc/someconf. It works fine in the post install. Will it work in the fresh install scenario? Creating the new file (tmp) will work during the fresh install?  If there is a better solution please suggest me.

Thanks,
  -Kalyan






--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups