On Fri 20 Jul 2007, Hugh Messenger wrote:
Alan DeKok said:
Directories are cheap.
sql/templates/database-thingy.conf sql/database/thingy.conf -> ../../templates/..... sql/thingy/database.conf -> ../../templates/...
Of course, that would also simplify configuration, so in radiusd.conf we can have ...
db_dialect = mysql
... then in things like sql.conf and sqlippool.conf, instead of having stuff like ...
################################################################ ## Uncomment the appropriate config file for your SQL dialect ## ################################################################
# $INCLUDE ${confdir}/sql/mysql-ippool-dialup.conf $INCLUDE ${confdir}/sql/postgresql-ippool-dialup.conf
... it just becomes ...
$INCLUDE ${confdir}/sql/${db_dialect}/sqlippool.conf
... no need to fart around editing the INCLUDE lines.
Bingo. I'm sold on the idea. -- Peter Nixon http://peternixon.net/