From c5585f26527d6508555116792ce70128ba3fdcc6 Mon Sep 17 00:00:00 2001 From: Sebastian Haderecker Date: Thu, 16 May 2019 01:20:50 +0000 Subject: [PATCH] Update: Restore HPFEEDS --- update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/update.sh b/update.sh index 0bfa5408..fd3ed850 100755 --- a/update.sh +++ b/update.sh @@ -265,6 +265,13 @@ if [ -f '/data/ews/conf/ews.cfg' ] && ! grep 'ews.cfg' /opt/tpot/etc/tpot.yml > fi } +function fuRESTORE_HPFEEDS () { +if [ -f '/data/ews/conf/hpfeeds.cfg' ]; then + echo "### Restoring HPFEEDS in tpot.yml" + ./bin/hpfeeds_optin.sh --conf=/data/ews/conf/hpfeeds.cfg +fi +} + ################ # Main section # @@ -297,3 +304,4 @@ fuBACKUP fuSELFUPDATE "$0" "$@" fuUPDATER fuRESTORE_EWSCFG +fuRESTORE_HPFEEDS