From 581f06e2e8153a76a0665906a166155da5c9ae3e Mon Sep 17 00:00:00 2001 From: Sebastian Haderecker Date: Tue, 23 Apr 2019 19:37:51 +0000 Subject: [PATCH] Restore custom ews.cfg volume after update - restore ews.cfg volume mount in tpot.yml --- update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/update.sh b/update.sh index e5d68cb7..a1fdcc5e 100755 --- a/update.sh +++ b/update.sh @@ -258,6 +258,13 @@ echo "### Please reboot." echo } +function fuRESTORE_EWSCFG () { +if [ -f '/data/ews/conf/ews.cfg' ]; then + echo "### Restoring volume mount for ews.cfg in tpot.yml" + sed -i '/\/opt\/ewsposter\/ews.ip/a\\ \ \ \ \ - /data/ews/conf/ews.cfg:/opt/ewsposter/ews.cfg' /opt/tpot/etc/tpot.yml +fi +} + ################ # Main section # @@ -289,3 +296,4 @@ fuSTOP_TPOT fuBACKUP fuSELFUPDATE "$0" "$@" fuUPDATER +fuRESTORE_EWSCFG