[PATCH 1/2] configurehood: Copy local hoodfile to common location

mail at adrianschmutzler.de mail at adrianschmutzler.de
So Dez 9 14:35:13 CET 2018


Beide Applied.

> -----Original Message-----
> From: franken-dev [mailto:franken-dev-bounces at freifunk.net] On Behalf
> Of robert
> Sent: Samstag, 8. Dezember 2018 20:30
> To: franken-dev at freifunk.net
> Subject: Re: [PATCH 1/2] configurehood: Copy local hoodfile to common
> location
> 
> Hi Fabian,
> 
> Reviewed-by: Robert Langhammer <rlanghammer at web.de>
> 
> 
> Oh mann, dieses configurehood! Das ist zwar nur eine Zeile, aber bis man
> wieder drin ist und versteht, wo das ueberall greifen koennte, puh!
> 
> Am 03.12.18 um 20:54 schrieb Fabian Bläse:
> > 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 at blaese.de>
> > ---
> >  src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> > b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> > index de60c21..4ae1364 100755
> > --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> > +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> > @@ -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
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : nicht verfügbar
Dateityp    : application/pgp-signature
Dateigröße  : 834 bytes
Beschreibung: nicht verfügbar
URL         : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20181209/ab7c092f/attachment.sig>


Mehr Informationen über die Mailingliste franken-dev