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