Merge pull request #278 from nmav/ocserv
[project/luci.git] / libs / nixio / root / lib / upgrade / luci-add-conffiles.sh
1 add_luci_conffiles()
2 {
3         local filelist="$1"
4
5         # save ssl certs
6         if [ -d /etc/nixio ]; then
7                 find /etc/nixio -type f >> $filelist
8         fi
9
10         # save uhttpd certs
11         [ -f "/etc/uhttpd.key" ] && echo /etc/uhttpd.key >> $filelist
12         [ -f "/etc/uhttpd.crt" ] && echo /etc/uhttpd.crt >> $filelist
13 }
14
15 sysupgrade_init_conffiles="$sysupgrade_init_conffiles add_luci_conffiles"
16