X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=26cec9de6e499fa8bff20be1be11a9a7ebe259f9;hb=refs%2Ftags%2Fdebian%2F5.4.4%2B3;hp=a527e5a2f96e5d9cf36052639d652db20088cc9e;hpb=da434d19b1512b9b997e02608fcb19ef8ee218a3;p=php5-cn.git diff --git a/debian/postinst b/debian/postinst index a527e5a..26cec9d 100755 --- a/debian/postinst +++ b/debian/postinst @@ -28,8 +28,11 @@ esac PKG="php5-cn" A2MODEDIR="/etc/apache2/mods-enabled" -EXTENSIONS="mysql" +### mysql je vec ukljucen u wheezyu +### EXTENSIONS="mysql" +EXTENSIONS="" PHP5DIR="/etc/php5" +PHP5MODADIR="$PHP5DIR/mods-available" PHP5CONFD="/etc/php5/conf.d" PHP4DIR="/etc/php4" @@ -133,6 +136,17 @@ if [ ! -d "$PHP5CONFD" ]; then mkdir -p $PHP5CONFD/ fi +# Brisanje obsolete datoteke mysql.ini u $PHP5CONFD +# +if [ -f "$PHP5CONFD/mysql.ini" ]; then + # just to make sure mysql is included in _new-style_ configuration + if [ -f "$PHP5MODADIR/mysql.ini" ]; then + cp_echo "CN: Removing obsolete $PHP5CONFD/mysql.ini" + rm -f $PHP5CONFD/mysql.ini + else + cp_echo "CN: WARNING: Obsolete $PHP5CONFD/mysql.ini present, and no $PHP5MODADIR/mysql.ini!" + fi +fi # Check if PHP5 extensions are enabled. #