forked from FreifunkFranken/fff-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·24 lines (17 loc) · 819 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
mkdir -vp /var/lib/ffmap/csv
#FIXME: create dummy csv files
chown -R www-data:www-data /var/lib/ffmap
mkdir -vp /usr/share/ffmap
cp -v ffmap/mapnik/{hoods,hoods_v2,routers,routers_v2,routers_local}.xml /usr/share/ffmap
sed -i -e 's#>csv/#>/var/lib/ffmap/csv/#' /usr/share/ffmap/{hoods,hoods_v2,routers,routers_v2,routers_local}.xml
chown www-data:www-data /usr/share/ffmap/{hoods,hoods_v2,routers,routers_v2,routers_local}.xml
cp -v ffmap/mapnik/tilestache.cfg /usr/share/ffmap
cp -rv ffmap/web/static /usr/share/ffmap
cp -rv ffmap/web/templates /usr/share/ffmap
mkdir -vp /var/cache/ffmap/tiles/
chown -R www-data:www-data /var/cache/ffmap/tiles/
cp -v ffmap/systemd/*.service /etc/systemd/system/
systemctl daemon-reload
python3 setup.py install --force
(cd ffmap/mapnik; python3 setup.py install)