From 0bfa7c9136e512d355c789d358bbbba4243a16cb Mon Sep 17 00:00:00 2001 From: shenmo Date: Mon, 11 Apr 2022 09:40:28 +0800 Subject: [PATCH] =?UTF-8?q?=09=E4=BF=AE=E6=94=B9=EF=BC=9A=20=20=20=20=20de?= =?UTF-8?q?bian/spark-store.prerm=20=09=E4=BF=AE=E6=94=B9=EF=BC=9A=20=20?= =?UTF-8?q?=20=20=20tool/update-upgrade/ss-update-notify-placer.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/spark-store.prerm | 5 +++++ tool/update-upgrade/ss-update-notify-placer.sh | 3 +++ 2 files changed, 8 insertions(+) diff --git a/debian/spark-store.prerm b/debian/spark-store.prerm index 4103efd..afa33a7 100755 --- a/debian/spark-store.prerm +++ b/debian/spark-store.prerm @@ -13,6 +13,11 @@ rm /etc/xdg/autostart/spark-update-notifier.desktop # Stop update detect service systemctl disable spark-update-notifier +# Clean the service place file +if [ -d "/tmp/spark-store-updatenum/" ] ; then + rm -rf /tmp/spark-store-updatenum/s +fi + # Remove gpg key file if [ -f "/etc/apt/trusted.gpg.d/spark-store.gpg" ] ; then rm /etc/apt/trusted.gpg.d/spark-store.gpg diff --git a/tool/update-upgrade/ss-update-notify-placer.sh b/tool/update-upgrade/ss-update-notify-placer.sh index 19c56c3..6ed2861 100755 --- a/tool/update-upgrade/ss-update-notify-placer.sh +++ b/tool/update-upgrade/ss-update-notify-placer.sh @@ -39,6 +39,9 @@ fi updatetext=`sudo apt update -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"` +mkdir -p /tmp/spark-store-updatenum/ + + isupdate=`echo ${updatetext: -5}` if [ "$isupdate" = "date." ];then sudo echo "0" > /tmp/spark-store-updatenum/number