libs/nixio: save uhttpd certs as well
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 5 Apr 2010 17:38:05 +0000 (17:38 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 5 Apr 2010 17:38:05 +0000 (17:38 +0000)
libs/nixio/root/lib/upgrade/luci-add-conffiles.sh

index 0d99257619d6ef489c6bcad801128b18f3be472c..77399b98724ff2dfc93a8f9c17ab3fb086242d6a 100644 (file)
@@ -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"