From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] backup.pl: Fix Bug13799 - addon restore not working Date: Fri, 20 Dec 2024 11:04:05 +0100 Message-ID: <20241220100405.73336-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5082241856618242774==" List-Id: --===============5082241856618242774== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable - This fixes the existence check for the addon .ipf file from a check of exis= tence of a directory to a check of existence of a file. 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(-) 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 2.47.1 --===============5082241856618242774==--