all: Don't touch config files during package update

Apparently we don't want to mess with users configuration.

# Conflicts:
#	branding.spec
This commit is contained in:
Mikhail Efremov 2019-10-16 16:58:57 +03:00 committed by Alexey Shabalin
parent de33909bc2
commit 0a21bd5c85

View File

@ -228,6 +228,7 @@ find %buildroot -name \*.in -delete
%endif
%post bootloader
[ "$1" -eq 1 ] || exit 0
%ifarch %ix86 x86_64
%__ln_s -nf %theme/message /boot/splash/message
. /etc/sysconfig/i18n
@ -244,7 +245,7 @@ shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_HIGHLIGHT %grub_high
%ifarch %ix86 x86_64
%preun bootloader
[ $1 = 0 ] || exit 0
[ "$1" -eq 1 ] || exit 0
[ "`readlink /boot/splash/message`" != "%theme/message" ] ||
%__rm -f /boot/splash/message
%endif
@ -261,6 +262,7 @@ shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_HIGHLIGHT %grub_high
#bootsplash
%post bootsplash
[ "$1" -eq 1 ] || exit 0
subst "s/Theme=.*/Theme=%theme/" /etc/plymouth/plymouthd.conf
[ -f /etc/sysconfig/grub2 ] && \
subst "s|GRUB_WALLPAPER=.*|GRUB_WALLPAPER=/usr/share/plymouth/themes/%theme/grub.jpg|" \