File: phpX-memcache.postrm

package info (click to toggle)
php-memcache 3.0.4-4%2Bsqueeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 132 kB
  • ctags: 4
  • sloc: sh: 38; makefile: 29
file content (17 lines) | stat: -rw-r--r-- 309 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh
set -e

if test "$1" = "purge"; then
    if which ucf >/dev/null 2>&1; then
        ucf --purge /etc/phpX/conf.d/memcache.ini
    fi
    rm -f /etc/phpX/conf.d/memcache.ini
fi

if test "$1" = "remove"; then
    sed s/extension/\;extension/g -i /etc/phpX/conf.d/memcache.ini
fi

#DEBHELPER#

exit 0