SELinux fcontext for changed MariaDB location

semanage fcontext -a -t mysqld_db_t '/dir/mariadb(/.*)?'
semanage fcontext -a -t mysqld_var_run_t '/dir/mariadb/mysql(x)?\.sock'
 
restorecon -Rv /dir/mariadb
semanage fcontext -a -t mysqld_db_t '/dir/mariadb(/.*)?'
semanage fcontext -a -t mysqld_var_run_t '/dir/mariadb/mysql(x)?\.sock'
 
restorecon -Rv /dir/mariadb