diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-21 13:16:18 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-21 13:16:18 +1200 |
commit | 248e0f4f7e2be0e0686f717bbfa83f9f170edfc8 (patch) | |
tree | 6b31c403dd6201fec3db399a63f12b196db4a4f1 /setup/package.sh | |
parent | ac454e7696cc2cedd953874d3cde3f78b3249328 (diff) | |
download | trackermap-server-248e0f4f7e2be0e0686f717bbfa83f9f170edfc8.tar.gz trackermap-server-248e0f4f7e2be0e0686f717bbfa83f9f170edfc8.tar.bz2 trackermap-server-248e0f4f7e2be0e0686f717bbfa83f9f170edfc8.zip |
Update setup package scripts
Diffstat (limited to 'setup/package.sh')
-rwxr-xr-x | setup/package.sh | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/setup/package.sh b/setup/package.sh index afc8cbe26..d4629f088 100755 --- a/setup/package.sh +++ b/setup/package.sh @@ -7,14 +7,6 @@ fi # GENERAL REQUIREMENTS -# Check web application -if [ -e "traccar-web.war" ]; then - echo "Web application archive found" -else - echo "Put traccar-web.war into this directory" - exit 0 -fi - # Check wrapper if ls wrapper-delta-pack-*.tar.gz 1> /dev/null 2>&1; then echo "Java wrapper package found" @@ -119,6 +111,7 @@ mkdir out/conf mkdir out/data mkdir out/lib mkdir out/logs +mkdir out/web cp wrapper/src/bin/sh.script.in out/bin/traccar cp wrapper/lib/wrapper.jar out/lib @@ -129,14 +122,14 @@ chmod +x out/bin/traccar cp ../target/tracker-server.jar out cp ../target/lib/* out/lib -cp traccar-web.war out -cp linux/traccar.cfg out/conf +cp -r ../target/web/* out/web +cp linux/traccar.xml out/conf sed -i 's/@app.name@/traccar/g' out/bin/traccar sed -i 's/@app.long.name@/traccar/g' out/bin/traccar sed -i '/wrapper.java.classpath.1/i\wrapper.java.classpath.2=../tracker-server.jar' out/conf/wrapper.conf -sed -i "/wrapper.app.parameter.1/i\wrapper.app.parameter.2=$app/conf/traccar.cfg" out/conf/wrapper.conf +sed -i "/wrapper.app.parameter.1/i\wrapper.app.parameter.2=$app/conf/traccar.xml" out/conf/wrapper.conf 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 @@ -174,13 +167,13 @@ zip -j traccar-linux-arm-$1.zip traccar.run linux/README.txt # MACOSX PACKAGE -rm out/conf/traccar.cfg +rm out/conf/traccar.xml rm out/bin/wrapper-linux-armel-32 rm out/bin/wrapper-linux-armhf-32 rm out/lib/libwrapper-linux-armel-32.so rm out/lib/libwrapper-linux-armhf-32.so -cp macosx/traccar.cfg out/conf +cp macosx/traccar.xml out/conf cp wrapper/bin/wrapper-macosx-universal-64 out/bin/wrapper cp wrapper/lib/libwrapper-macosx-universal-64.jnilib out/lib/libwrapper.jnilib |