File: inn2.postrm

package info (click to toggle)
inn2 2.5.4-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,720 kB
  • ctags: 8,983
  • sloc: ansic: 92,499; sh: 13,509; perl: 12,921; makefile: 2,985; yacc: 842; python: 342; lex: 255
file content (20 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e

# #690128: if the old MOTD file has been amended by the admin from default,
# then rename it to the new non-conffile nnrpd MOTD file.
# If not then remove the old MOTD conffile, being sure to cater for rollback.
dpkg-maintscript-helper rm_conffile /etc/news/motd.news 2.5.3-1~ -- "$@"
dpkg-maintscript-helper mv_conffile /etc/news/radius.conf /etc/news/inn-radius.conf 2.5.3-3~ -- "$@"

if [ "$1" = "purge" ]; then
  update-rc.d inn2 remove >/dev/null
  if [ -e /var/lib/news/ ]; then
    rm -f /var/lib/news/.news.daily /var/lib/news/active* \
      /var/lib/news/newsgroups /var/lib/news/history*
    rmdir --ignore-fail-on-non-empty /var/lib/news/
  fi
fi

#DEBHELPER#

exit 0