X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=e959c3d25a1a48bff8602dc37ccf0bd548d18847;hb=fa157e1c72b9c4be2e6ed98a7c653c243ad29d18;hp=1d8f9b87605b36c15e0baec996d02fdab302798c;hpb=2922ab2f397d399054a16a93aae6ebd121aac370;p=mysql-cn.git diff --git a/debian/postinst b/debian/postinst index 1d8f9b8..e959c3d 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" @@ -10,7 +11,7 @@ PKG="mysql-cn" . /usr/share/carnet-tools/functions.sh if [ -f /etc/mysql/my.cnf ]; then - # ukljuci networking, da mysql visi na portu 3306 + # iskljuci zastarjelu opciju cp_check_and_sed '^skip-networking' \ 's/^skip-networking$/#skip-networking/' \ /etc/mysql/my.cnf && restart=yes || true @@ -25,14 +26,10 @@ if [ -f /etc/mysql/my.cnf ]; then "s,^\([\t ]*log[\t ]*=\),#\1," \ /etc/mysql/my.cnf && restart=yes || true - # ukljuci podrsku za hrvatsko znakovlje - # ne radi na Etch-u - #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 + # iskljuci zastarjeli skip-bdb + cp_check_and_sed '^skip-bdb' \ + 's/^skip-bdb$/#skip-bdb/' \ + /etc/mysql/my.cnf && restart=yes || true fi # pristup samo sa lokalne mreze, preko tcp-wrappera... @@ -70,3 +67,5 @@ if [ -x /usr/sbin/invoke-rc.d ]; then else [ -x /etc/init.d/mysql ] && /etc/init.d/mysql restart fi + +#DEBHELPER#