mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-05 06:09:57 -05:00
Combining install scripts into a new repair script. Removing create_db script in favor of repair script.
This commit is contained in:
parent
b817534c37
commit
6e0f9a999c
57 changed files with 785 additions and 724 deletions
|
|
@ -36,8 +36,6 @@ function cleanup() {
|
|||
if [ -f ${MERGED_TMP_FILE} ]; then
|
||||
rm ${MERGED_TMP_FILE}
|
||||
fi
|
||||
# Renderd must be restarted to forget the cache.
|
||||
systemctl restart renderd
|
||||
}
|
||||
|
||||
trap cleanup EXIT
|
||||
|
|
@ -107,7 +105,4 @@ else
|
|||
fi
|
||||
|
||||
# Clear map tile cache only after successful import.
|
||||
[ -d /var/lib/mod_tile/ajt ] && rm -rf /var/lib/mod_tile/ajt
|
||||
[ -d /var/cache/renderd/tiles/ajt ] && rm -rf /var/cache/renderd/tiles/ajt
|
||||
|
||||
# Renderd is restarted in cleanup trap.
|
||||
yes | /bin/bash /opt/wrolpi/scripts/clear_map_cache.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue