Add text to an existing file

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

 



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 =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=

-- 
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux