aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-22 11:06:36 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-22 11:06:36 +1200
commit32ac45e2e96baa970eca750a706d8bc823512844 (patch)
treec86d309142a40d64c0eef81b765d1cbd867c081c
parent374ee56aa76b2196dea6d08673e5bea91d8147da (diff)
downloadtraccar-server-32ac45e2e96baa970eca750a706d8bc823512844.tar.gz
traccar-server-32ac45e2e96baa970eca750a706d8bc823512844.tar.bz2
traccar-server-32ac45e2e96baa970eca750a706d8bc823512844.zip
Fix some installer script issues
-rwxr-xr-xsetup/package.sh2
-rwxr-xr-xsetup/unix/linux-arm-setup.sh2
-rwxr-xr-xsetup/unix/setup.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/setup/package.sh b/setup/package.sh
index 2b4097885..b8b35235b 100755
--- a/setup/package.sh
+++ b/setup/package.sh
@@ -131,7 +131,7 @@ package_unix () {
eval $2
- makeself out traccar.run "traccar" ./setup.sh
+ makeself out traccar.run "traccar" "chmod +x setup.sh ; ./setup.sh"
zip -j traccar-$1-$VERSION.zip traccar.run README.txt
rm traccar.run
diff --git a/setup/unix/linux-arm-setup.sh b/setup/unix/linux-arm-setup.sh
index 902b25701..8128e9396 100755
--- a/setup/unix/linux-arm-setup.sh
+++ b/setup/unix/linux-arm-setup.sh
@@ -6,7 +6,7 @@ if [ $(java -version 2>&1 | grep -i version | sed 's/.*version "\(.*\)\.\(.*\)\.
then
echo "Please install Java version 7 or higher"
else
- mkdir $UNIX_PATH
+ mkdir -p $UNIX_PATH
cp -rf * $UNIX_PATH
chmod -R go+rX $UNIX_PATH
if [ -z "`readelf -A /proc/self/exe | grep Tag_ABI_VFP_args`" ]
diff --git a/setup/unix/setup.sh b/setup/unix/setup.sh
index 38dcb19a0..902139a1a 100755
--- a/setup/unix/setup.sh
+++ b/setup/unix/setup.sh
@@ -6,7 +6,7 @@ if [ $(java -version 2>&1 | grep -i version | sed 's/.*version "\(.*\)\.\(.*\)\.
then
echo "Please install Java version 7 or higher"
else
- mkdir $UNIX_PATH
+ mkdir -p $UNIX_PATH
cp -rf * $UNIX_PATH
chmod -R go+rX $UNIX_PATH
$UNIX_PATH/bin/traccar install