-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·33 lines (27 loc) · 877 Bytes
/
setup.sh
File metadata and controls
executable file
·33 lines (27 loc) · 877 Bytes
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
26
27
28
29
30
31
32
33
#!/bin/bash
read -p "Clone openstreetmap-carto? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
git clone git@github.com:gravitystorm/openstreetmap-carto.git
fi
read -p "Download coastline shapefiles? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
# this is truly garbage, but it's probably easier than installing mapnik
docker run -it -v $(pwd)/openstreetmap-carto:/carto wolf/tileoven /bin/bash -c "PATH=\$PATH:/tileoven/node_modules/mapnik/lib/binding/bin && cd /carto && scripts/get-shapefiles.py"
fi
read -p "Install required font (noto) with apt-get? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
sudo apt-get install fonts-noto-cjk fonts-noto-hinted fonts-noto-unhinted fonts-hanazono ttf-unifont
fi
read -p "Create docker volume for postgis (postgis-db-data)? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
docker volume create postgis-db-data
fi
echo "Done!"