From 0dcd0b6dc53ce438e5f174593904ec382b2e153b Mon Sep 17 00:00:00 2001 From: Sebastian Haderecker Date: Tue, 23 Apr 2019 20:58:57 +0000 Subject: [PATCH] Check for volume mount before reapplying it --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index a1fdcc5e..795004de 100755 --- a/update.sh +++ b/update.sh @@ -259,7 +259,7 @@ echo } function fuRESTORE_EWSCFG () { -if [ -f '/data/ews/conf/ews.cfg' ]; then +if [ -f '/data/ews/conf/ews.cfg' ] && ! grep 'ews.cfg' /opt/tpot/etc/tpot.yml > /dev/null; 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