diff options
author | bvoudenaarde <oudenaar@gmail.com> | 2016-11-24 20:14:07 +0100 |
---|---|---|
committer | bvoudenaarde <oudenaar@gmail.com> | 2016-11-24 20:14:07 +0100 |
commit | ff4e575ecc79f0ccbb0a73d6b15c4415f7f8aece (patch) | |
tree | 77463ed1a05eb6f79c49282f61430e34dd3b44b6 | |
parent | 0a2dfffa373ef8e72aa75cb56f0916bb424c37d6 (diff) | |
download | trackermap-server-ff4e575ecc79f0ccbb0a73d6b15c4415f7f8aece.tar.gz trackermap-server-ff4e575ecc79f0ccbb0a73d6b15c4415f7f8aece.tar.bz2 trackermap-server-ff4e575ecc79f0ccbb0a73d6b15c4415f7f8aece.zip |
improve web-less setup
-rwxr-xr-x | setup/docker/build.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/setup/docker/build.sh b/setup/docker/build.sh index 56d6fc518..f32335ead 100755 --- a/setup/docker/build.sh +++ b/setup/docker/build.sh @@ -18,7 +18,11 @@ cp -rf ./setup/default.xml ${tmp} cp -rf ./schema ${tmp}/schema cp -rf ./target/tracker-server.jar ${tmp}/traccar-server.jar cp -rf ./target/lib ${tmp}/lib -cp -rf ./traccar-web/web ${tmp}/web +if [ -d ./traccar-web/web ]; then + cp -rf ./traccar-web/web ${tmp}/web +else + mkdir ${tmp}/web +fi docker build -t ${company}/${software}:${version} ./setup/docker/ |