File: prerm

package info (click to toggle)
rspamd 3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 28,208 kB
  • sloc: ansic: 219,795; cpp: 60,575; javascript: 29,167; perl: 2,869; asm: 2,512; pascal: 1,610; python: 1,141; sql: 313; sh: 303; makefile: 135; xml: 74
file content (36 lines) | stat: -rw-r--r-- 1,072 bytes parent folder | download | duplicates (4)
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
#!/bin/sh

set -eu

case "$1" in
    remove|upgrade|deconfigure)
      # Rspamd web interface doesn't support symlinks and directory traversal
      # remove copied javascript files
      rm -f /usr/share/rspamd/www/js/lib/bootstrap.bundle.min.js
      rm -f /usr/share/rspamd/www/css/bootstrap.min.css
      rm -f /usr/share/rspamd/www/js/lib/jquery.min.js
      rm -f /usr/share/rspamd/www/js/lib/require.min.js

      # path of previous versions
      rm -f /usr/share/rspamd/www/js/lib/bootstrap.min.js
      rm -f /usr/share/rspamd/www/js/lib/jquery-3.3.1.min.js

      # remove copied font files
      rm -f /usr/share/rspamd/www/fonts/glyphicons-halflings-regular.ttf
      rm -f /usr/share/rspamd/www/fonts/glyphicons-halflings-regular.woff
      rm -f /usr/share/rspamd/www/fonts/glyphicons-halflings-regular.woff2
    ;;

    failed-upgrade)
    ;;

    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#