diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2012-08-20 23:37:46 +0400 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2012-08-20 23:37:46 +0400 |
commit | 4929206865ad6123c70ff2fca7c571e38089a01b (patch) | |
tree | 533ce31ef840a52715a36e608278066966886fec /setup/linux | |
parent | 6dc180657196e4b6c2029c8b3fe9d3931152d094 (diff) | |
download | trackermap-server-4929206865ad6123c70ff2fca7c571e38089a01b.tar.gz trackermap-server-4929206865ad6123c70ff2fca7c571e38089a01b.tar.bz2 trackermap-server-4929206865ad6123c70ff2fca7c571e38089a01b.zip |
Automate setups creation
Diffstat (limited to 'setup/linux')
-rw-r--r-- | setup/linux/README.txt | 17 | ||||
-rwxr-xr-x | setup/linux/traccar.sh | 35 |
2 files changed, 43 insertions, 9 deletions
diff --git a/setup/linux/README.txt b/setup/linux/README.txt new file mode 100644 index 000000000..878890c3a --- /dev/null +++ b/setup/linux/README.txt @@ -0,0 +1,17 @@ +== DESCRIPTION ==
+
+Web page - http://www.traccar.org
+
+Author - Anton Tananaev (anton.tananaev@gmail.com)
+
+Traccar software is licensed under the Apache License 2.0.
+
+== INSTALL ==
+
+1. Run traccar.run (sudo ./traccar.run)
+2. Start daemon (sudo /opt/traccar/bin/traccar start)
+
+== UNINSTALL ==
+
+1. Remove traccar from init (sudo /opt/traccar/bin/traccar remove)
+2. Remove traccar directory (sudo rm -R /opt/traccar)
diff --git a/setup/linux/traccar.sh b/setup/linux/traccar.sh index 45e638b31..bcba7bb5a 100755 --- a/setup/linux/traccar.sh +++ b/setup/linux/traccar.sh @@ -2,7 +2,10 @@ app='/opt/traccar' -rm -f -R out +tar -xzf wrapper-delta-pack-*.tar.gz +mv wrapper-delta-pack-*/ wrapper/ + +rm -rf out mkdir out mkdir out/bin @@ -11,18 +14,14 @@ mkdir out/data mkdir out/lib mkdir out/logs -cp wrapper/bin/wrapper out/bin cp wrapper/src/bin/sh.script.in out/bin/traccar -cp wrapper/lib/libwrapper.so out/lib cp wrapper/lib/wrapper.jar out/lib cp wrapper/src/conf/wrapper.conf.in out/conf/wrapper.conf -cp tracker-server.jar out -cp lib/* out/lib +cp ../../target/tracker-server.jar out +cp ../../target/lib/* out/lib cp linux.cfg out/conf -chmod +x out/bin/traccar - sed -i 's/@app.name@/traccar/g' out/bin/traccar sed -i 's/@app.long.name@/traccar/g' out/bin/traccar @@ -33,7 +32,25 @@ 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 -makeself out traccar.run "traccar" "mkdir /opt/traccar; cp -f -R * /opt/traccar; /opt/traccar/bin/traccar install" +# linux 32 + +cp wrapper/bin/wrapper-linux-x86-32 out/bin/wrapper +cp wrapper/lib/libwrapper-linux-x86-32.so out/lib/libwrapper.so +chmod +x out/bin/traccar + +makeself out traccar.run "traccar" "mkdir $app; cp -rf * $app; $app/bin/traccar install" +zip traccar-linux-32.zip traccar.run README.txt + +# linux 64 + +cp wrapper/bin/wrapper-linux-x86-64 out/bin/wrapper +cp wrapper/lib/libwrapper-linux-x86-64.so out/lib/libwrapper.so +chmod +x out/bin/traccar + +makeself out traccar.run "traccar" "mkdir $app; cp -rf * $app; $app/bin/traccar install" +zip traccar-linux-64.zip traccar.run README.txt -rm -f -R out +rm traccar.run +rm -rf out +rm -rf wrapper |