X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=26cec9de6e499fa8bff20be1be11a9a7ebe259f9;hb=refs%2Ftags%2Fdebian%2F5.6.24.1;hp=a527e5a2f96e5d9cf36052639d652db20088cc9e;hpb=5f60735077e132585dcbf34616bb27d3e520d915;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. #