blob: d4db6db7939cc7ffbd36041d273503b803136d90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Colored makepkg-like functions
note() {
printf "${_blue}==>${_yellow} NOTE:${_bold} %s${_all_off}\n" "$1"
}
_all_off="$(tput sgr0)"
_bold="${_all_off}$(tput bold)"
_blue="${_bold}$(tput setaf 4)"
_yellow="${_bold}$(tput setaf 3)"
post_upgrade() {
# Now let us reload Clash Verge service automatically.
if systemctl is-active --quiet clash-verge-service.service; then
systemctl restart clash-verge-service.service
fi
note 'After upgrading Clash Verge Rev, it is recommended to restart Clash Verge Rev.'
}
pre_remove() {
# Remove service file silently, as official Debian package does
/usr/bin/uninstall-service
}
|