configurehood: Don't offer hoodfile when using local hoodfile

When using local hoodfile neither this nor central hoodfile
downloaded earlier should be offered to neighbours, so remove it
from the webroot.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
Fabian Bläse 2018-12-03 20:54:55 +01:00 committed by Adrian Schmutzler
parent 1da800bfce
commit cb0420e2d3
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ if [ -s "$hoodfilewww" ] && isGatewayAvailable ; then
fi
if [ -s "$hoodfilelocal" ]; then
# remove webroot hoodfile to prevent offering local hoodfiles to neighbours
rm -f "$hoodfilewww"
cp "$hoodfilelocal" "$hoodfiletmp"
echo "Use local hood file"
else