blob: f20ad3a79d562def0593473365a513eb5c36ba08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
# Change to the OSM2World directory
cd /opt/osm2world
# Default VM parameters
vmparams="-Xmx2G"
# Parse optional --vm-params argument
if [[ $1 == --vm-params=* ]]; then
vmparams="${1#--vm-params=}"
shift
fi
# Check if the JAR file exists
if [[ ! -f OSM2World.jar ]]; then
echo "Error: OSM2World.jar not found in /opt/osm2world."
exit 1
fi
# Run the Java application
exec java $vmparams -jar OSM2World.jar "$@"
|