aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsetup/package.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/setup/package.sh b/setup/package.sh
index a265afb80..928a6e5b1 100755
--- a/setup/package.sh
+++ b/setup/package.sh
@@ -120,14 +120,17 @@ package_unix () {
sed -i.bak 's/@app.name@/traccar/g' out/bin/traccar
sed -i.bak 's/@app.long.name@/traccar/g' out/bin/traccar
- sed -i.bak '/wrapper.java.classpath.1/i\wrapper.java.classpath.2=../tracker-server.jar' out/conf/wrapper.conf
- sed -i.bak '/wrapper.app.parameter.1/i\wrapper.app.parameter.2=../conf/traccar.xml' out/conf/wrapper.conf
+ sed -i.bak '/wrapper.java.classpath.1/a\
+wrapper.java.classpath.2=../tracker-server.jar' out/conf/wrapper.conf
+ sed -i.bak '/wrapper.app.parameter.1/a\
+wrapper.app.parameter.2=../conf/traccar.xml' out/conf/wrapper.conf
sed -i.bak 's/wrapper.java.additional.1=/wrapper.java.additional.1=-Dfile.encoding=UTF-8/g' out/conf/wrapper.conf
sed -i.bak 's/<YourMainClass>/org.traccar.Main/g' out/conf/wrapper.conf
sed -i.bak 's/@app.name@/traccar/g' out/conf/wrapper.conf
sed -i.bak 's/@app.long.name@/traccar/g' out/conf/wrapper.conf
sed -i.bak 's/@app.description@/traccar/g' out/conf/wrapper.conf
- sed -i.bak 's/wrapper.logfile=..\/logs\/wrapper.log/wrapper.logfile=..\/logs\/wrapper.log.YYYYMMDD\nwrapper.logfile.rollmode=DATE/g' out/conf/wrapper.conf
+ sed -i.bak 's/wrapper.logfile=..\/logs\/wrapper.log/wrapper.logfile=..\/logs\/wrapper.log.YYYYMMDD\
+wrapper.logfile.rollmode=DATE/g' out/conf/wrapper.conf
rm out/bin/traccar.bak
rm out/conf/wrapper.conf.bak