File: php.get

package info (click to toggle)
wwwconfig-common 0.3.0
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 488 kB
  • sloc: sh: 952; makefile: 5
file content (27 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File:		php.get
# Changes:
#	20010219 Ola Lundqvist <opal@debian.org>
#	20010430 Ola Lundqvist <opal@debian.org>
#		Removed bash specific dependency.
#	20011022 Luca De Vitis <luca@debian.org>
#		Allowed reinclusion.
#	20020116 Ola Lundqvist <opal@debian.org>
#		Documented the reinclusion.
#	20020126 Ola Lundqvist <opal@debian.org>
#		Removed reinclusion.
# Needs:	/usr/share/wwwconfig-common/php.get
#		$extensions - what php extensions to check for!
# Description:	Sets the phpver and phpini variables to the version
#		of php that are installed.
# Sets:         $phpver = {php3, php4}
#               $phpini = {/etc/php4/apache/php.ini, /etc/php3/apache/php3.ini}

for A in php3 php4 ; do
    B=$(echo "$A" | sed -e "s|4||g;")
    I=/etc/$A/apache/$B.ini
    if [ -f $I ] ; then
	phpver=$A
	phpini=$I
    fi
done
phpini=${phpini:-none}