Skip to content
Snippets Groups Projects
Commit cb0420e2 authored by Fabian Blaese's avatar Fabian Blaese Committed by Adrian Schmutzler
Browse files

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: default avatarFabian Bläse <fabian@blaese.de>
Reviewed-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: default avatarRobert Langhammer <rlanghammer@web.de>
parent 1da800bf
No related branches found
No related tags found
No related merge requests found
...@@ -77,6 +77,9 @@ if [ -s "$hoodfilewww" ] && isGatewayAvailable ; then ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment