| 1 | #!/bin/sh -e |
| 2 | |
| 3 | . /usr/share/debconf/confmodule |
| 4 | db_version 2.0 |
| 5 | # source dbconfig-common shell library, and call the hook function |
| 6 | if [ -f /usr/share/dbconfig-common/dpkg/prerm.mysql ]; then |
| 7 | . /usr/share/dbconfig-common/dpkg/prerm.mysql |
| 8 | dbc_go diogenes $@ |
| 9 | fi |
| 10 | |
| 11 | ACTION=$1 |
| 12 | case "$ACTION" in |
| 13 | remove) |
| 14 | # |
| 15 | # Remove the automatically generated diogenes.config.inc.php |
| 16 | # |
| 17 | rm -f /etc/diogenes/diogenes.config.inc.php |
| 18 | |
| 19 | # |
| 20 | # Remove the compiled templates directory |
| 21 | # |
| 22 | rm -rf /var/spool/diogenes/templates_c |
| 23 | ;; |
| 24 | *) |
| 25 | ;; |
| 26 | esac |
| 27 | |
| 28 | # dh_installdeb will replace this with shell code automatically |
| 29 | # generated by other debhelper scripts. |
| 30 | |
| 31 | #DEBHELPER# |
| 32 | |
| 33 | exit 0 |
| 34 | |