# Defaults for freevo initscript
# sourced by /etc/init.d/freevo* and the freevo postinst script

#######
#Due to bug #606782, the default base was changed from /home to /var/lib,
#so this script tries to choose the best one

#Note that the directories you set as FREEVO_CACHEDIR FREEVO_LOGDIR FREEVO_STATICDIR
#are automatically created when freevo is (re)configured, e.g. using 'dpkg-reconfigure freevo'

# Cache dir. Warning: it will be 'rm -rf' on package purge
if test -d /home/freevo/cache ; then
 export FREEVO_CACHEDIR=/home/freevo/cache
else
 export FREEVO_CACHEDIR=/var/lib/freevo/cache
fi

if test -d /home/freevo/log ; then
 export FREEVO_LOGDIR=/home/freevo/log
else
 export FREEVO_LOGDIR=/var/lib/freevo/log
fi

if test -d /home/freevo/static ;then
 export FREEVO_STATICDIR=/home/freevo/static
else
 export FREEVO_STATICDIR=/var/lib/freevo/static
fi

########

# If you set any of the following, it will override /etc/freevo/debconf.sh
#  (in case you do not like debconf....)

# Don't use it by default
#START_FREEVO_XSERVER=0

# Set to 1 to start the record server
#START_FREEVO_RECORDSERVER=0

# Set to 1 to start the encoding server
#START_FREEVO_ENCODINGSERVER=0

# Set to 1 to start the web server throught init
# You may use plugin.activate('www') in local_config.py instead
#START_FREEVO_WEBSERVER=0

#START_FREEVO_RSSSERVER=0
