Commit 0a21bd5c authored by Mikhail Efremov's avatar Mikhail Efremov Committed by Alexey Shabalin

all: Don't touch config files during package update

Apparently we don't want to mess with users configuration. # Conflicts: # branding.spec
parent de33909b
......@@ -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|" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment