Skip to content

Commit

Permalink
configurehood: Don't offer hoodfile when using local hoodfile
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
fblaese authored and adschm committed Dec 9, 2018
1 parent 1da800b commit cb0420e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/packages/fff/fff-hoods/files/usr/sbin/configurehood
Expand Up @@ -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
Expand Down

0 comments on commit cb0420e

Please sign in to comment.