script referenced by postinstall script is wrong '/usr/scripts/scripts/mysql_install_db':
mysqld_safe: The problem could be conflicting information in an external
mysqld_safe: my.cnf files. You can ignore these by doing:
mysqld_safe: shell> /usr/scripts/scripts/mysql_install_db --defaults-file=~/.my.cnf
Should be '/usr/bin/mysql_install_db'.
Error was originallly caused by an apparmor old mysqld profile (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865534) and:
mysqld_safe: #007/usr/sbin/mysqld: Can't read dir of '/etc/mysql/mariadb.conf.d/' (Errcode: 13 "Permission denied")
Question: is it possible/do we want to - have more intelligent postinstall script that could suggest better solutions?