File: php-cli.postinst

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

set -e

if [ "$1" = "configure" ]; then
    for binary in php phar phar.phar; do
        update-alternatives \
            --install /usr/bin/${binary} ${binary} /usr/bin/${binary}.default 100 \
            --slave /usr/share/man/man1/${binary}.1.gz ${binary}.1.gz /usr/share/man/man1/${binary}.default.1.gz
    done
fi

#DEBHELPER#

exit 0