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:56:57 +0000 (23:56 +0100)
commit581339cce15d7732b2e9542a86bdefcc3c094596
treed5aff333b29f094eebd18d5d9f55077a2273b42e
parent2ba84595f2f1bfc6dc43c8780ffd9da1200a9d42
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