luci-lib-nixio: Fix add_luci_conffiles adding duplicate files (#6568)
authorXiang W <wxjstz@126.com>
Mon, 4 Dec 2023 20:48:19 +0000 (04:48 +0800)
committerPaul Donald <newtwen@gmail.com>
Mon, 4 Dec 2023 22:55:51 +0000 (23:55 +0100)
commitea30bd9902d9580c385b1a3563c75682d8c1f7d5
tree95021ec892e3fd7148f61be6201c28790ce26351
parent009c9962329ec237dc08a5c3133846671b884767
luci-lib-nixio: Fix add_luci_conffiles adding duplicate files (#6568)

* luci-lib-nixio: Fix add_luci_conffiles adding duplicate files

add_luci_conffiles does not check whether the file already exists
when adding the file, which may result in redundant backups in the
sysupgrade backup.

Signed-off-by: Xiang W <wxjstz@126.com>
(cherry picked from commit c2f679962ddf7f6545adacfcf3068370825c43a9)
libs/luci-lib-nixio/root/lib/upgrade/luci-add-conffiles.sh