lintian izmjene, plus zastarjele opcije
[mysql-cn.git] / debian / postinst
index 8cf13b8..e959c3d 100755 (executable)
@@ -11,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,6 +25,11 @@ 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
+
+  # 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...
@@ -62,3 +67,5 @@ if [ -x /usr/sbin/invoke-rc.d ]; then
 else
   [ -x /etc/init.d/mysql ] && /etc/init.d/mysql restart
 fi
+
+#DEBHELPER#