From 2257b6888cd637a94f7d77bb179e670e81b31096 Mon Sep 17 00:00:00 2001 From: kamiyadm Date: Wed, 15 Nov 2023 10:33:55 +0800 Subject: [PATCH] chore: remove old configs before install linglong remove linglong.sh and 21linglong which in old package. Log: --- debian/linglong-bin.preinst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/linglong-bin.preinst b/debian/linglong-bin.preinst index a43acc4f9..ef08c1f78 100755 --- a/debian/linglong-bin.preinst +++ b/debian/linglong-bin.preinst @@ -1,11 +1,17 @@ #!/bin/bash +oldProfile="/etc/profile.d/linglong.sh" +oldX11Config="/etc/X11/Xsession.d/21linglong" + case "$1" in install | upgrade) if [ "x$2" != "x" ]; then killall ll-service >/dev/null 2<&1 killall ll-package-manager >/dev/null 2<&1 fi + if [[ -f "$oldProfile" && -f "$oldX11Config" ]]; then + rm $oldProfile $oldX11Config + fi ;; abort-upgrade) ;;