aboutsummaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
Diffstat (limited to 'setup')
-rwxr-xr-xsetup/package.sh3
-rw-r--r--setup/windows/traccar.iss1
2 files changed, 3 insertions, 1 deletions
diff --git a/setup/package.sh b/setup/package.sh
index c79c5d710..8d3c87fc0 100755
--- a/setup/package.sh
+++ b/setup/package.sh
@@ -107,6 +107,7 @@ sed -i 's/<YourMainClass>/org.traccar.Main/g' out/conf/wrapper.conf
sed -i 's/@app.name@/traccar/g' out/conf/wrapper.conf
sed -i 's/@app.long.name@/traccar/g' out/conf/wrapper.conf
sed -i 's/@app.description@/traccar/g' out/conf/wrapper.conf
+sed -i 's/wrapper.logfile=..\/logs\/wrapper.log/wrapper.logfile=..\/logs\/wrapper.log.YYYYMMDD\nwrapper.logfile.rollmode=DATE/g' out/conf/wrapper.conf
# linux 32
@@ -152,7 +153,7 @@ makeself out traccar.run "traccar" "mkdir -p $app; cp -rf * $app; $app/bin/tracc
zip -j traccar-macosx-64.zip traccar.run macosx/README.txt
rm traccar.run
-rm -rf out
+#rm -rf out
# GENERAL CLEANUP
diff --git a/setup/windows/traccar.iss b/setup/windows/traccar.iss
index bd69352db..262a8e51e 100644
--- a/setup/windows/traccar.iss
+++ b/setup/windows/traccar.iss
@@ -56,6 +56,7 @@ begin
StringChangeEx(S, '@app.name@', 'Traccar', true);
StringChangeEx(S, '@app.long.name@', 'Traccar', true);
StringChangeEx(S, '@app.description@', 'Traccar', true);
+ StringChangeEx(S, 'wrapper.logfile=../logs/wrapper.log', 'wrapper.logfile=../logs/wrapper.log.YYYYMMDD' + #13#10 + 'wrapper.logfile.rollmode=DATE', true);
SaveStringToFile(ExpandConstant(CurrentFileName), S, false);
end;