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 0d99257..77399b9 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"