mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-03 01:42:20 +08:00
修改: debian/spark-store.prerm
修改: tool/update-upgrade/ss-update-notify-placer.sh
This commit is contained in:
parent
6d38c0bf70
commit
0bfa7c9136
5
debian/spark-store.prerm
vendored
5
debian/spark-store.prerm
vendored
@ -13,6 +13,11 @@ rm /etc/xdg/autostart/spark-update-notifier.desktop
|
|||||||
# Stop update detect service
|
# Stop update detect service
|
||||||
systemctl disable spark-update-notifier
|
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
|
# Remove gpg key file
|
||||||
if [ -f "/etc/apt/trusted.gpg.d/spark-store.gpg" ] ; then
|
if [ -f "/etc/apt/trusted.gpg.d/spark-store.gpg" ] ; then
|
||||||
rm /etc/apt/trusted.gpg.d/spark-store.gpg
|
rm /etc/apt/trusted.gpg.d/spark-store.gpg
|
||||||
|
@ -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"`
|
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}`
|
isupdate=`echo ${updatetext: -5}`
|
||||||
if [ "$isupdate" = "date." ];then
|
if [ "$isupdate" = "date." ];then
|
||||||
sudo echo "0" > /tmp/spark-store-updatenum/number
|
sudo echo "0" > /tmp/spark-store-updatenum/number
|
||||||
|
Loading…
x
Reference in New Issue
Block a user