#257 rundig doesn't use common_dir from conf

open
nobody
other (29)
5
2005-02-16
2005-02-16
JVE
No

The rundig script is considerate enough to get a
redefined database_dir from the htdig.conf file, but it
does not do the same for common_dir. Since COMMONDIR
is used to test for some htfuzzy databases, it's
important to get the right path. Otherwise, htfuzzy
will unnecessarily recreate static databases.

Please duplicate the functionality of the database_dir
code for common_dir, like so:

new_dir=`awk '/^[^#a-zA-Z]*common_dir/ { print $NF
}' < $conffile`
if [ "$new_dir" != "" ]
then
COMMONDIR=$new_dir
fi

Thanks.

Discussion