File: libpuzzle-php.postinst

package info (click to toggle)
libpuzzle 0.11-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 2,092 kB
  • sloc: sh: 9,723; ansic: 1,811; makefile: 977; php: 269; sql: 148
file content (23 lines) | stat: -rw-r--r-- 445 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
#!/bin/sh

#
# postinst script for libpuzzle-php
#

set -e

if which dpkg-maintscript-helper >/dev/null && dpkg-maintscript-helper supports mv_conffile ; then
    dpkg-maintscript-helper mv_conffile \
        /etc/php5/conf.d/libpuzzle.ini /etc/php5/mods-available/libpuzzle.ini \
        0.9-4.1+b1 -- "$@"
fi

if [ "$1" = "configure" ]; then
    if which php5dismod >/dev/null ; then
        php5enmod libpuzzle
    fi
fi

#DEBHELPER#

exit 0