X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=8cf13b8f88eb8efb1b1978f7306da46796556722;hb=11e0f5a7fbca2ef10214641d15815937c06f7937;hp=4bf896b068b74e0adae88afbf97b8aea08769d43;hpb=94ed0d871649e73400c860ae9b577d3c5b617800;p=mysql-cn.git diff --git a/debian/postinst b/debian/postinst index 4bf896b..8cf13b8 100755 --- a/debian/postinst +++ b/debian/postinst @@ -3,6 +3,7 @@ set -e [ "$1" = "configure" ] || exit 0 +[ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx PKG="mysql-cn" @@ -24,14 +25,6 @@ if [ -f /etc/mysql/my.cnf ]; then cp_check_and_sed '^log.*mysql.log' \ "s,^\([\t ]*log[\t ]*=\),#\1," \ /etc/mysql/my.cnf && restart=yes || true - - # ukljuci podrsku za hrvatsko znakovlje - if ! grep -q default-character-set /etc/mysql/my.cnf; then - awk '/^\[mysqld\]/{print "[mysqld]"; print "default-character-set=croat"; getline}{print $0}' \ - /etc/mysql/my.cnf > /etc/mysql/mysql-cn.$$ - cp_mv /etc/mysql/mysql-cn.$$ /etc/mysql/my.cnf - restart=yes - fi fi # pristup samo sa lokalne mreze, preko tcp-wrappera...