File: php3-cgi.postinst

package info (click to toggle)
php3 3%3A3.0.18-31
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 17,860 kB
  • ctags: 11,260
  • sloc: ansic: 108,487; sh: 2,439; php: 2,024; yacc: 1,887; makefile: 1,056; perl: 537; pascal: 238; awk: 90; cpp: 28; sql: 11
file content (20 lines) | stat: -rw-r--r-- 344 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

#DEBHELPER#

if [ "$1" != "configure" ]; then
    exit 0
fi

update-alternatives \
        --install /usr/bin/php php /usr/bin/php3 30

update-alternatives \
        --install /usr/bin/php-cgi php-cgi /usr/bin/php3 30

update-alternatives \
        --install /usr/lib/cgi-bin/php php-cgi-bin /usr/lib/cgi-bin/php3 30

exit 0