[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Add text to an existing file



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

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]