diff --git a/bin/install_mapproxy.sh b/bin/install_mapproxy.sh
index 266cb4e..73a05b7 100755
a
|
b
|
fi
|
16 | 16 | USER_HOME="/home/$USER_NAME" |
17 | 17 | |
18 | 18 | BIN="/usr/local/bin" |
19 | | TMP="/tmp/build_mapproxy" |
20 | | MAPPROXY_VERSION="1.8.2" |
21 | | MAPPROXY_DOCS_FILE="MapProxy-docs-1.8.0.tar.gz" |
22 | | MAPPROXY_DOCS_URL="http://mapproxy.org/static/rel/$MAPPROXY_DOCS_FILE" |
23 | 19 | MAPPROXY_DIR="/usr/local/share/mapproxy" |
24 | 20 | |
25 | | apt-get install --yes python-mapproxy |
| 21 | apt-get install --yes mapproxy mapproxy-doc |
26 | 22 | |
27 | | mkdir -p "$TMP" |
28 | | cd "$TMP" |
29 | | |
30 | | echo "Downloading: $MAPPROXY_DOCS_URL" |
31 | | wget --timestamping --continue --progress=dot:mega "$MAPPROXY_DOCS_URL" |
32 | | if [ $? -ne 0 ] ; then |
33 | | echo "ERROR: download failed" |
34 | | exit 1 |
35 | | fi |
36 | | |
37 | | mkdir -p $MAPPROXY_DIR/docs |
38 | | echo "Extracting docs: $MAPPROXY_DOCS_FILE" |
39 | | tar -xz --strip-components 1 -C "$MAPPROXY_DIR"/docs -f "$MAPPROXY_DOCS_FILE" |
40 | | if [ $? -ne 0 ] ; then |
41 | | echo "ERROR: docs install failed" |
42 | | exit 1 |
43 | | fi |
44 | | ln -sf "$MAPPROXY_DIR/docs" /var/www/html/mapproxy |
| 23 | ln -sf /usr/share/doc/mapproxy/html /var/www/html/mapproxy |
45 | 24 | |
46 | 25 | echo "Creating Scripts/Links" |
47 | 26 | # Create startup script for MapProxy Server |
… |
… |
services:
|
114 | 93 | fax: +49(0)000-000000-0 |
115 | 94 | email: info@omniscale.de |
116 | 95 | access_constraints: |
117 | | This service is intended for private and evaluation use only. |
118 | | The data is licensed as Creative Commons Attribution-Share Alike 2.0 |
119 | | (http://creativecommons.org/licenses/by-sa/2.0/) |
| 96 | Insert license and copyright information for this service. |
120 | 97 | fees: 'None' |
121 | 98 | |
122 | 99 | layers: |
… |
… |
chgrp users "$MAPPROXY_DIR/mapproxy.yaml"
|
266 | 243 | chmod g+w "$MAPPROXY_DIR/mapproxy.yaml" |
267 | 244 | adduser "$USER_NAME" users |
268 | 245 | |
269 | | #snafu'd ownership |
270 | | chown -R root.root "$MAPPROXY_DIR/docs/" |
271 | | |
272 | 246 | |
273 | 247 | #### |
274 | 248 | "$BUILD_DIR"/diskspace_probe.sh "`basename $0`" end |