if echo | mysql mysql 2> /dev/null; then
mypwd="`makepasswd`"
mysqladmin password $mypwd
- cp_echo "CN: Password for MySQL administrator (root@localhost) is: $mypwd"
+ cp_echo "CN: Zaporka za MariaDB administratora (root@localhost) je: $mypwd"
cp_mail $PKG
fi
fi
if su - nobody -c '[ -r ~root/.my.cnf ]' 2>&1 > /dev/null; then
if grep -q "password.*=" ~root/.my.cnf; then
- echo "CN: WARNING: ~root/.my.cnf is world readable."
+ echo "CN: UPOZORENJE: datoteka ~root/.my.cnf je svima citljiva."
fi
fi
[ "$restart" = "yes" ] || exit 0
# restart mysql-a
-if [ -x /usr/sbin/invoke-rc.d ]; then
- [ -x /etc/init.d/mysql ] && invoke-rc.d mysql restart
-else
- [ -x /etc/init.d/mysql ] && /etc/init.d/mysql restart
-fi
+#if [ -x /usr/sbin/invoke-rc.d ]; then
+# [ -x /etc/init.d/mysql ] && invoke-rc.d mysql restart
+#else
+# [ -x /etc/init.d/mysql ] && /etc/init.d/mysql restart
+#fi
+
+invoke-rc.d mysql restart
#DEBHELPER#