mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-29 07:02:20 +08:00
修改: debian/spark-store.postinst
修改: debian/spark-store.prerm 修改: pkg/usr/lib/systemd/system/spark-update-notifier.service
This commit is contained in:
parent
0bfa7c9136
commit
e14b1baaab
1
debian/spark-store.postinst
vendored
1
debian/spark-store.postinst
vendored
@ -27,6 +27,7 @@ case "$1" in
|
|||||||
|
|
||||||
# Start upgrade detect service
|
# Start upgrade detect service
|
||||||
systemctl enable spark-update-notifier
|
systemctl enable spark-update-notifier
|
||||||
|
service spark-update-notifier start
|
||||||
|
|
||||||
|
|
||||||
# Update certain caches
|
# Update certain caches
|
||||||
|
11
debian/spark-store.prerm
vendored
11
debian/spark-store.prerm
vendored
@ -7,12 +7,19 @@ rm /usr/local/bin/spark-dstore-patch
|
|||||||
rm /usr/local/bin/ussinstall
|
rm /usr/local/bin/ussinstall
|
||||||
rm /usr/local/bin/ussremove
|
rm /usr/local/bin/ussremove
|
||||||
|
|
||||||
# Remove residual symbol links to stop upgrade detect
|
# Remove residual symbol links to stop upgrade detect if exist
|
||||||
|
if [ -f /etc/xdg/autostart/spark-update-notifier.desktop ];then
|
||||||
rm /etc/xdg/autostart/spark-update-notifier.desktop
|
rm /etc/xdg/autostart/spark-update-notifier.desktop
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Shutdown services
|
||||||
|
service spark-update-notifier stop
|
||||||
|
|
||||||
# Stop update detect service
|
# Stop update detect service
|
||||||
systemctl disable spark-update-notifier
|
systemctl disable spark-update-notifier
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Clean the service place file
|
# Clean the service place file
|
||||||
if [ -d "/tmp/spark-store-updatenum/" ] ; then
|
if [ -d "/tmp/spark-store-updatenum/" ] ; then
|
||||||
rm -rf /tmp/spark-store-updatenum/s
|
rm -rf /tmp/spark-store-updatenum/s
|
||||||
@ -25,5 +32,3 @@ fi
|
|||||||
|
|
||||||
apt-key del '9D9A A859 F750 24B1 A1EC E16E 0E41 D354 A29A 440C'
|
apt-key del '9D9A A859 F750 24B1 A1EC E16E 0E41 D354 A29A 440C'
|
||||||
|
|
||||||
# Shutdown services
|
|
||||||
service spark-update-notifier stop
|
|
@ -1,15 +1,14 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description:Spark Store update notifier
|
Description=Spark Store update notifier
|
||||||
After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service
|
After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service
|
||||||
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=simple
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStart=/opt/durapps/spark-store/bin/update-upgrade/ss-update-notify-placer.sh
|
ExecStart=/opt/durapps/spark-store/bin/update-upgrade/ss-update-notify-placer.sh
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
Alias=spark-update-notifier
|
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user