Add text to an existing file

alcapcom alcapcom at gmail.com
Mon Feb 26 19:45:18 UTC 2007


Hi Folk,

This problem concern this review:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=192436

For the moment we add the Xgl definition in GDM via this %post script:

%post
GDM_CONF_FILE=/etc/gdm/custom.conf
GDM_CONF_EXSIST=$(fgrep -i \[server-xgl\] $GDM_CONF_FILE)
if ! [ -n "$GDM_CONF_EXSIST" ] ; then
        cp -f $GDM_CONF_FILE $GDM_CONF_FILE.rpmsave
        cat >> $GDM_CONF_FILE \
<< EOF

# Experimental build of Xgl
[server-xgl]
name=Xgl server
command=%{_bindir}/Xgl -accel glx:pbuffer -accel xv:pbuffer -audit 0
flexible=false
EOF
fi


Thorsten signal me that it is not a good way of making, but I do not see
how to add text to an existing file without a %post script.

Any idea?

In advance, Thanks
-- 
Regards,
Alphonse
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20070226/e4cbeff9/attachment.sig>


More information about the fedora-extras-list mailing list