d/postinst: Workaround failure to create DB with libpam-tmpdir
Closes: https://bugs.debian.org/1022994
On Debian GNU/Linux, when the package libpam-tmpdir is installed, mysql_install_db script fails during post install setup. As a result, mariadb daemon fails to start.
Errors like this are typically seen when directories/files are created by root user in the $TMPDIR and later a non-root user tries to access those files without any further permission changes. libpam-tmpdir tries to ensure that temporary files created by one user are not accidentally accessible to unauthorized users.
This bug is reported upstream as: https://jira.mariadb.org/browse/MDEV-29910
This patch is a workaround until that issue is fixed.
Signed-off-by: Sunil Mohan Adapa sunil@medhas.org