#!/bin/bash

. ${TOOLKIT}-functions.sh

module="phpmyadmin"
file=`filepath ku-$module.conf` || exit 1
allowed=`jtconf mysql.${module}_allow` || exit_missing_define "mysql.${module}_allow"

string=
for allow in $allowed
do
	string="$string	Allow from $allow\n"
done

sed -e "s#-ku-temp-tag-for-inserting-allow-ku-#$string#" $file > $file.tmp

exit 0
