From 58a5b15c0bcf27bebf1ecb5505f3a8cfa99864d2 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 30 Jun 2009 18:05:07 +0000 Subject: [PATCH] libs/nixio: add sysupgrade hook to include /etc/nixio/ (generated certs) into saved file list --- libs/nixio/root/lib/upgrade/luci-add-conffiles.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libs/nixio/root/lib/upgrade/luci-add-conffiles.sh diff --git a/libs/nixio/root/lib/upgrade/luci-add-conffiles.sh b/libs/nixio/root/lib/upgrade/luci-add-conffiles.sh new file mode 100644 index 000000000..0d9925761 --- /dev/null +++ b/libs/nixio/root/lib/upgrade/luci-add-conffiles.sh @@ -0,0 +1,12 @@ +add_luci_conffiles() +{ + local filelist="$1" + + # save ssl certs + if [ -d /etc/nixio ]; then + find /etc/nixio >> $filelist + fi +} + +sysupgrade_init_conffiles="$sysupgrade_init_conffiles add_luci_conffiles" + -- 2.25.1