aboutsummaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-05-03 19:52:20 +1200
committerGitHub <noreply@github.com>2017-05-03 19:52:20 +1200
commitc22fd3e9e786575a912684f95b41e413f9d96292 (patch)
treefa5b6a248ece0abdf2774902f7c183ef35a67edd /setup
parent1bf2353bafe3481f1deeb9e73e9bcaa1a40f0103 (diff)
parentfa6548a7b613b5bd3919cbf0269d58b2d8ebb999 (diff)
downloadtrackermap-server-c22fd3e9e786575a912684f95b41e413f9d96292.tar.gz
trackermap-server-c22fd3e9e786575a912684f95b41e413f9d96292.tar.bz2
trackermap-server-c22fd3e9e786575a912684f95b41e413f9d96292.zip
Merge pull request #3136 from sillaps/master
Environment variables
Diffstat (limited to 'setup')
-rwxr-xr-xsetup/docker/build.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/setup/docker/build.sh b/setup/docker/build.sh
index eedc633bc..0b292fc5f 100755
--- a/setup/docker/build.sh
+++ b/setup/docker/build.sh
@@ -5,9 +5,10 @@ which awk &> /dev/null || { echo >&2 "Awk package cant be found on path. Aborti
which docker &> /dev/null || { echo >&2 "Docker package cant be found on path. Aborting."; exit 1; }
mvn package || { echo >&2 "Maven package has failed. Aborting."; exit 1; }
-export company="tananaev"
-export software="traccar"
-export version=$(head -n 10 ./pom.xml |grep version|cut -d ">" -f2|cut -d"<" -f1)
+export company=${1:-"tananaev"}
+export software=${2:-"traccar"}
+export _version=$(head -n 10 ./pom.xml |grep version|cut -d ">" -f2|cut -d"<" -f1)
+export version=${3:-_version}
tmp="./setup/docker/tmp"