configurehood: Copy local hoodfile to common location

Instead of overwriting local variable to local hoodfile location,
copy it to the commonly used location. This makes the local hoodfile
behave exactly like central hoodfiles, which prevents some border cases.

The previous behaviour mainly caused issues when using getJsonPath() and
getUpgradePath() from fff-hoodutils.

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:54 +01:00 committed by Adrian Schmutzler
parent 9999b7b2cb
commit 1da800bfce
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ if [ -s "$hoodfilewww" ] && isGatewayAvailable ; then
fi
if [ -s "$hoodfilelocal" ]; then
hoodfiletmp="$hoodfilelocal"
cp "$hoodfilelocal" "$hoodfiletmp"
echo "Use local hood file"
else
# if we have Internet, we download the Hoodfile from the keyxchangev2