* Add a separate option log_dir for the log directory.

This commit is contained in:
Justin Maggard
2010-10-27 00:51:39 +00:00
parent b66f85936f
commit bd22632840
6 changed files with 25 additions and 2 deletions

View File

@ -12,6 +12,8 @@ CONFIGMACRO="__CONFIG_H__"
# Database path
DB_PATH="/tmp/minidlna"
# Log path
LOG_PATH="${DB_PATH}"
# detecting the OS name and version
OS_NAME=`uname -s`
@ -116,6 +118,7 @@ case $OS_NAME in
OS_NAME=Debian
OS_VERSION=`cat /etc/debian_version`
OS_URL=http://www.debian.org/
LOG_PATH="/var/log"
# use lsb_release (Linux Standard Base) when available
LSB_RELEASE=`which lsb_release 2>/dev/null`
if [ 0 -eq $? ]; then
@ -146,6 +149,10 @@ echo "/* full path of the file database */" >> ${CONFIGFILE}
echo "#define DEFAULT_DB_PATH \"${DB_PATH}\"" >> ${CONFIGFILE}
echo "" >> ${CONFIGFILE}
echo "/* full path of the log directory */" >> ${CONFIGFILE}
echo "#define DEFAULT_LOG_PATH \"${LOG_PATH}\"" >> ${CONFIGFILE}
echo "" >> ${CONFIGFILE}
echo "/* Comment the following line to use home made daemonize() func instead" >> ${CONFIGFILE}
echo " * of BSD daemon() */" >> ${CONFIGFILE}
echo "#define USE_DAEMON" >> ${CONFIGFILE}