blob: f019f6394f52d39cf471e6d034211b5f27186aec (
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
|
_info() {
echo -e "\033[32m:: linyaps getting started:\033[0m"
echo -e "\033[32m:: linyaps 入门:\033[0m"
echo -e " \033[32mEnglish: https://linyaps.org.cn/en/guide/start/whatis.html\033[0m"
echo -e " \033[32m简中: https://linyaps.org.cn/guide/start/whatis.html\033[0m"
}
_en_ll() {
systemctl daemon-reload
systemctl enable org.deepin.linglong.PackageManager.service 2>/dev/null || true
systemctl start org.deepin.linglong.PackageManager.service 2>/dev/null || true
}
_dis_ll() {
systemctl stop org.deepin.linglong.PackageManager.service 2>/dev/null || true
systemctl disable org.deepin.linglong.PackageManager.service 2>/dev/null || true
}
post_install() {
_info
_en_ll
}
pre_upgrade() {
_info
_dis_ll
}
post_upgrade() {
_info
_en_ll
}
pre_remove() {
_dis_ll
}
|