修改: debian/spark-store.prerm

修改:     tool/update-upgrade/ss-update-notify-placer.sh
This commit is contained in:
shenmo 2022-04-11 09:40:28 +08:00
parent 6d38c0bf70
commit 0bfa7c9136
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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