From 11283fd0da7ee3759a12568fd836b43dd8747905 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Fri, 16 Jun 2006 06:06:15 +0000 Subject: [PATCH] make log truncation the default --- win32/nsi/mt-daapd-example.conf | 19 +++++++------------ win32/nsi/mt-daapd.nsi.templ | 10 ++++++++++ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/win32/nsi/mt-daapd-example.conf b/win32/nsi/mt-daapd-example.conf index 575262d6..10bc7d77 100644 --- a/win32/nsi/mt-daapd-example.conf +++ b/win32/nsi/mt-daapd-example.conf @@ -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 diff --git a/win32/nsi/mt-daapd.nsi.templ b/win32/nsi/mt-daapd.nsi.templ index efa3d885..3134bb01 100644 --- a/win32/nsi/mt-daapd.nsi.templ +++ b/win32/nsi/mt-daapd.nsi.templ @@ -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