Skip to content

Commit

Permalink
chore: remove old configs before install linglong
Browse files Browse the repository at this point in the history
remove linglong.sh and 21linglong which in old package.

Log:
  • Loading branch information
kamiyadm committed Nov 15, 2023
1 parent a683465 commit 2257b68
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/linglong-bin.preinst
Original file line number Diff line number Diff line change
@@ -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) ;;
Expand Down

0 comments on commit 2257b68

Please sign in to comment.