blob: 400b216b4aca3ddaa96d1e35e057c66a354cd868 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
post_install() {
echo "Updating mime database..."
update-mime-database /usr/share/mime &> /dev/null
echo "Updating desktop mime database..."
update-desktop-database /usr/share/applications &> /dev/null
echo "Updating icon cache..."
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}
op=$1
shift
$op $*
|