make log truncation the default

This commit is contained in:
Ron Pedde 2006-06-16 06:06:15 +00:00
parent cf9281f1e4
commit 11283fd0da
2 changed files with 17 additions and 12 deletions

View File

@ -273,21 +273,16 @@ process_m3u = 1
scan_type=2
#
# compress
#
# Whether to use gzip content-encoding when transferring playlists etc.
# This was contributed as a patch by Ciamac Moallemi just prior to the 0.2.1
# release, and as such, hasn't gotten as much testing as other features.
#
# This feature should substantially speed up transfers of large databases
# and playlists.
#
# It will eventually default to 1, but currently it defaults to 0.
#
# compress 0
#
# Truncate
#
# should the server truncate the log files on startup.
# Defaults to zero
truncate = 1
[plugins]
plugin_dir = plugins
plugins = rsp.dll,w32-event.dll

View File

@ -225,6 +225,16 @@ HasConf:
ext_skip:
; Check for truncate
ReadINIStr $0 "$2\mt-daapd.conf" "general" "truncate"
StrCmp $0 "" trunc_set trunc_skip
trunc_set:
WriteINIStr "$2\mt-daapd.conf" "general" "truncate" "1"
trunc_skip:
SetAutoClose False
SectionEnd