forked from freifunk-franken/firmware
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:
parent
1da800bfce
commit
cb0420e2d3
|
@ -77,6 +77,9 @@ if [ -s "$hoodfilewww" ] && isGatewayAvailable ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -s "$hoodfilelocal" ]; then
|
if [ -s "$hoodfilelocal" ]; then
|
||||||
|
# remove webroot hoodfile to prevent offering local hoodfiles to neighbours
|
||||||
|
rm -f "$hoodfilewww"
|
||||||
|
|
||||||
cp "$hoodfilelocal" "$hoodfiletmp"
|
cp "$hoodfilelocal" "$hoodfiletmp"
|
||||||
echo "Use local hood file"
|
echo "Use local hood file"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user