blob: cea8f9ab0c50f3b97b8bba014c992af916215d8a (
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
|
pre_upgrade() {
# Keep existing '-javaagent' options, if any
if [ -e "/opt/sts4/SpringToolSuite4.ini" ]; then
grep -E "^-javaagent" /opt/sts4/SpringToolSuite4.ini > /tmp/sts4.javaagents || return 0
fi
}
post_install() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
post_upgrade() {
post_install $1
# Restore existing '-javaagent' options, if any
if [ -s "/tmp/sts4.javaagents" ]; then
cat /tmp/sts4.javaagents >> /opt/sts4/SpringToolSuite4.ini
fi
rm -f /tmp/sts4.javaagents
}
post_remove() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
|