File: php5-xcache.postinst

package info (click to toggle)
xcache 2.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,724 kB
  • sloc: ansic: 8,175; php: 4,557; awk: 285; sh: 135; makefile: 75
file content (20 lines) | stat: -rwxr-xr-x 413 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
    php5enmod xcache
fi

dpkg-maintscript-helper mv_conffile \
    /etc/php5/conf.d/xcache.ini /etc/php5/mods-available/xcache.ini 2.0.0-2 php5-xcache -- "$@"

# Verify path in ini file is correct
EXT_DIR=
if [ -n "$EXT_DIR" ]; then
    sed -e "s@\(zend_extension=\).*\(xcache.so\)@\1$EXT_DIR/\2@g" -i /etc/php5/mods-available/xcache.ini
fi

#DEBHELPER#

exit 0