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