From mboxrd@z Thu Jan 1 00:00:00 1970 From: bbitsch@ipfire.org To: development@lists.ipfire.org Subject: Re: [PATCH] backup.pl: Fix Bug13799 - addon restore not working Date: Fri, 20 Dec 2024 11:55:58 +0100 Message-ID: In-Reply-To: <20241220100405.73336-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7352130189334379571==" List-Id: --===============7352130189334379571== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Reviewed-by: Bernhard Bitsch On 20.12.24 11:04, Adolf Belka wrote: > - This fixes the existence check for the addon .ipf file from a check of ex= istence > of a directory to a check of existence of a file. >=20 > Suggested-by: Bernhard Bitsch > Tested-by: Bernhard Bitsch > Fixes: Bug13799 > Signed-off-by: Adolf Belka > --- > config/backup/backup.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/config/backup/backup.pl b/config/backup/backup.pl > index 3b10b8707..b618576e1 100644 > --- a/config/backup/backup.pl > +++ b/config/backup/backup.pl > @@ -285,7 +285,7 @@ make_addon_backup() { > restore_addon_backup() { > local name=3D"${1}" > =20 > - if [ -d "/tmp/${name}.ipf" ]; then > + if [ -e "/tmp/${name}.ipf" ]; then > mv "/tmp/${name}.ipf" "/var/ipfire/backup/addons/backup/${name}.ipf" > fi > =20 >=20 --===============7352130189334379571==--