debian/libpuzzle-php.postinst
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | # |
| 4 | # postinst script for libpuzzle-php |
| 5 | # |
| 6 | |
| 7 | set -e |
| 8 | |
| 9 | if which dpkg-maintscript-helper >/dev/null && dpkg-maintscript-helper supports mv_conffile ; then |
| 10 | dpkg-maintscript-helper mv_conffile \ |
| 11 | /etc/php5/conf.d/libpuzzle.ini /etc/php5/mods-available/libpuzzle.ini \ |
| 12 | 0.9-4.1+b1 -- "$@" |
| 13 | fi |
| 14 | |
| 15 | if [ "$1" = "configure" ]; then |
| 16 | if which php5dismod >/dev/null ; then |
| 17 | php5enmod libpuzzle |
| 18 | fi |
| 19 | fi |
| 20 | |
| 21 | #DEBHELPER# |
| 22 | |
| 23 | exit 0 |