blob: 51886e01f521f266d772b557e0728731f2518d59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# spark-store.install
post_install() {
# ln -sf /opt/durapps/spark-store/bin/spark-dstore-patch "/usr/bin/spark-dstore-patch"
# ln -sf /opt/durapps/spark-store/bin/spark-store "/usr/bin/spark-store"
# ln -sf /opt/durapps/spark-store/bin/aptss "/usr/bin/aptss"
# Start upgrade detect service
systemctl daemon-reload
systemctl enable spark-update-notifier
systemctl start spark-update-notifier
# Update certain caches
# cp -fv /opt/spark-store/extras/store.spark-app.spark-store.policy /usr/share/polkit-1/actions/store.spark-app.spark-store.policy
xdg-mime default spark-store.desktop x-scheme-handler/spk
update-mime-database /usr/share/mime || true
systemctl enable --now apm-daily-update
echo "========================================================"
echo -e " APM Daily updates are enabled by default."
echo -e " You can disable them with the following command:"
echo -e " systemctl stop apm-daily-update"
echo -e " systemctl disable apm-daily-update"
echo "========================================================"
}
post_upgrade() {
post_install
}
pre_remove() {
# rm -f /usr/bin/spark-store
# rm -f /usr/bin/spark-dstore-patch
# rm -f /usr/bin/aptss
# for home in /home/*; do
# rm -rf "$home/.config/spark-union/spark-store"
# done
# Shutdown services
systemctl stop spark-update-notifier
# Stop update detect service
systemctl disable spark-update-notifier
}
post_remove() {
# Update certain caches
update-icon-caches /usr/share/icons/hicolor || true
update-desktop-database /usr/share/applications || true
update-mime-database /usr/share/mime || true
}
|