File: php-cgi.postinst

package info (click to toggle)
php-defaults 93
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 248 kB
  • sloc: sh: 858; makefile: 65
file content (17 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
    update-alternatives \
        --install /usr/bin/php-cgi php-cgi /usr/bin/php-cgi.default 100 \
        --slave /usr/share/man/man1/php-cgi.1.gz php-cgi.1.gz \
        /usr/share/man/man1/php-cgi.default.1.gz

    update-alternatives \
        --install /usr/lib/cgi-bin/php php-cgi-bin /usr/lib/cgi-bin/php.default 100
fi

#DEBHELPER#

exit 0