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)
committerGitHub <noreply@github.com>
Mon, 4 Dec 2023 20:48:19 +0000 (21:48 +0100)
commitc2f679962ddf7f6545adacfcf3068370825c43a9
tree13dc2bc88c97adb2a4e3c88770fc5614e23cdfc2
parent830c0ee6bdec7ef727b4caf913dcf30c084eb305
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>
libs/luci-lib-nixio/root/lib/upgrade/luci-add-conffiles.sh