Debian Codegraph @

debian/prerm

raw
1 #!/bin/sh
2
3 set -eu
4
5 case "$1" in
6 remove|upgrade|deconfigure)
7 # Rspamd web interface doesn't support symlinks and directory traversal
8 # remove copied javascript files
9 rm -f /usr/share/rspamd/www/js/lib/bootstrap.bundle.min.js
10 rm -f /usr/share/rspamd/www/css/bootstrap.min.css
11 rm -f /usr/share/rspamd/www/js/lib/jquery.min.js
12 rm -f /usr/share/rspamd/www/js/lib/require.min.js
13
14 # path of previous versions
15 rm -f /usr/share/rspamd/www/js/lib/bootstrap.min.js
16 rm -f /usr/share/rspamd/www/js/lib/jquery-3.3.1.min.js
17
18 # remove copied font files
19 rm -f /usr/share/rspamd/www/fonts/glyphicons-halflings-regular.ttf
20 rm -f /usr/share/rspamd/www/fonts/glyphicons-halflings-regular.woff
21 rm -f /usr/share/rspamd/www/fonts/glyphicons-halflings-regular.woff2
22 ;;
23
24 failed-upgrade)
25 ;;
26
27 *)
28 echo "prerm called with unknown argument \`$1'" >&2
29 exit 1
30 ;;
31 esac
32
33 # dh_installdeb will replace this with shell code automatically
34 # generated by other debhelper scripts.
35
36 #DEBHELPER#