Force update of all config files on upgrade files

It's an extra safety to have a clean start and it makes it easier
for others to test.

Gbp-Dch: Full
This commit is contained in:
Raphaël Hertzog 2019-11-08 19:10:33 +01:00
parent b516c6e487
commit 54275159c7

View File

@ -39,16 +39,14 @@ install_config_file() {
if [ "$1" = "configure" ]; then if [ "$1" = "configure" ]; then
if [ -z "$2" ]; then if [ -z "$2" ]; then
# Initial install # Initial install
install_all force install_all force
else else
# Upgrade # Upgrade all files once
if dpkg --compare-versions "$2" lt "2019.4.6"; then if dpkg --compare-versions "$2" lt "2019.4.10"; then
# Those files have been updated, force install them install_all force
install_config_file /etc/xdg/xfce4/terminal/terminalrc force
install_config_file /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml force
fi fi
# Install remaining new files # Install remaining new files
install_all install_all
fi fi
# Copy grub theme to /boot # Copy grub theme to /boot
mkdir -p /boot/grub/themes/kali mkdir -p /boot/grub/themes/kali