3 # This script will merge the main php.ini with local and site specific
4 # additions into a site specific php.ini.
6 BASE=/etc/php5/cgi/php.ini
7 LOCAL=/etc/php5/cgi/php.ini.local
9 CONFIN=conf/php.ini.override
12 for SITE in $SITES; do
15 if [ \! -r $IN ]; then
21 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
23 ; This file is autogenerated by $0
25 ; Do NOT edit this file directly.
27 ; You should instead edit $IN (for site-specific config) or $LOCAL (for global
28 ; config) and run $0 afterwards.
30 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
33 ;;; Begin included $BASE (this is the default config from php) ;;;
38 echo -e "\n;;; End included $BASE ;;;\n" >> $OUT
39 echo -e "\n;;; Begin included $LOCAL (these are global config changes) ;;;\n" >> $OUT
41 echo -e "\n;;; End included $LOCAL ;;;\n" >> $OUT
42 echo -e "\n;;; Begin included $IN (these are config changes specific to this site) ;;;\n" >> $OUT
44 echo -e "\n;;; End included $IN ;;;\n" >> $OUT