summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'libs/nixio/root/lib')
-rw-r--r--libs/nixio/root/lib/upgrade/luci-add-conffiles.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/nixio/root/lib/upgrade/luci-add-conffiles.sh b/libs/nixio/root/lib/upgrade/luci-add-conffiles.sh
index 0d9925761..77399b987 100644
--- a/libs/nixio/root/lib/upgrade/luci-add-conffiles.sh
+++ b/libs/nixio/root/lib/upgrade/luci-add-conffiles.sh
@@ -4,8 +4,12 @@ add_luci_conffiles()
# save ssl certs
if [ -d /etc/nixio ]; then
- find /etc/nixio >> $filelist
+ find /etc/nixio -type f >> $filelist
fi
+
+ # save uhttpd certs
+ [ -f "/etc/uhttpd.key" ] && echo /etc/uhttpd.key >> $filelist
+ [ -f "/etc/uhttpd.crt" ] && echo /etc/uhttpd.crt >> $filelist
}
sysupgrade_init_conffiles="$sysupgrade_init_conffiles add_luci_conffiles"