From 74f118ab5c48dce01f2ac97c5739c3e1740a101e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 5 Apr 2010 17:38:05 +0000 Subject: libs/nixio: save uhttpd certs as well --- libs/nixio/root/lib/upgrade/luci-add-conffiles.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libs/nixio/root/lib/upgrade') diff --git a/libs/nixio/root/lib/upgrade/luci-add-conffiles.sh b/libs/nixio/root/lib/upgrade/luci-add-conffiles.sh index 0d99257619..77399b9872 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" -- cgit v1.2.3