[PATCH 2/2] configurehood: Don't offer hoodfile when using local hoodfile
Fabian Bläse
fabian at blaese.de
Mo Dez 3 20:54:55 CET 2018
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 at blaese.de>
---
src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
index 4ae1364..2d448fc 100755
--- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
+++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
@@ -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
--
2.19.1
Mehr Informationen über die Mailingliste franken-dev