mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-26 01:46:18 -05:00
Use NetworkManager for hotspot. Use _renderd user to import maps.
This commit is contained in:
parent
7904f1e11d
commit
e482c7a88f
3 changed files with 18 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ if [[ ${1} == *.osm.pbf ]]; then
|
|||
pbf_path=${MERGED_TMP_FILE}
|
||||
fi
|
||||
|
||||
nice -n 18 osm2pgsql -d gis --create --slim -G --hstore \
|
||||
nice -n 18 osm2pgsql -d gis --create --slim -G --hstore -U _renderd -H 127.0.0.1 \
|
||||
--tag-transform-script /opt/openstreetmap-carto/openstreetmap-carto.lua \
|
||||
-C ${MAX_CACHE} \
|
||||
--number-processes 3 \
|
||||
|
|
@ -70,7 +70,7 @@ elif [[ ${1} == *.dump ]]; then
|
|||
exit 7
|
||||
fi
|
||||
# Import a Postgresql dump.
|
||||
nice -n 18 pg_restore -j3 --no-owner -d gis "${1}"
|
||||
nice -n 18 pg_restore -j3 --no-owner -d gis -U _renderd -h 127.0.0.1 "${1}"
|
||||
else
|
||||
echo "WROLPi: Cannot import unknown map file"
|
||||
exit 8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue