mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-19 20:14:18 -04:00
fix default config file location, ticket #63
This commit is contained in:
parent
d67da51dee
commit
bc2faaf75f
12
configure.in
12
configure.in
@ -19,10 +19,14 @@ AC_CHECK_FUNCS(strptime)
|
||||
AC_CHECK_FUNCS(strtok_r)
|
||||
AM_CONDITIONAL(COND_REND_OSX,false)
|
||||
|
||||
if test "x$prefix" != xNONE; then
|
||||
CONFFILE="$prefix/etc/mt-daapd.conf"
|
||||
else
|
||||
CONFFILE="/etc/mt-daapd.conf"
|
||||
if test "x$prefix" != xNONE -a "x$prefix" != "x/usr"; then
|
||||
CONFFILE="$prefix/etc/mt-daapd.conf"
|
||||
else
|
||||
if test "x$prefix" == "xNONE"; then
|
||||
CONFFILE="/usr/local/etc/mt-daapd.conf"
|
||||
else
|
||||
CONFFILE="/etc/mt-daapd.conf"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
@ -8,7 +8,7 @@ bin_SCRIPTS=mt-daapd-ssc.sh
|
||||
|
||||
dbdir="/var/cache/mt-daapd"
|
||||
|
||||
mt-daapd.conf: mt-daapd.conf.templ
|
||||
mt-daapd.conf: mt-daapd.conf.templ ../config.h
|
||||
if [ "$(prefix)" == "/usr" ]; then \
|
||||
sed -e s,[@]prefix[@],$(prefix),g -e s,[@]dbdir[@],/var/cache/mt-daapd,g $< >$@; \
|
||||
else \
|
||||
|
Loading…
x
Reference in New Issue
Block a user