mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 22:46:20 -05:00
Stopping/starting renderd during map import. Moving tile cache clearing to import script.
This commit is contained in:
parent
6376e6539b
commit
6791e88baf
8 changed files with 26 additions and 49 deletions
|
|
@ -1,13 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
# Simple script which removes the Renderd map tile cache files.
|
||||
|
||||
# Re-execute this script if it wasn't called with sudo.
|
||||
if [ $EUID != 0 ]; then
|
||||
sudo "$0" "$@"
|
||||
exit $?
|
||||
fi
|
||||
|
||||
[ -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
|
||||
|
||||
systemctl restart renderd
|
||||
Loading…
Add table
Add a link
Reference in a new issue