Restore custom ews.cfg in tpot.yml

This commit is contained in:
Sebastian Haderecker 2019-04-17 06:39:50 +00:00
parent b064764d31
commit 425d58f873

View file

@ -288,6 +288,13 @@ if grep 'EWS_HPFEEDS_ENABLE=true' $myEXTPATH > /dev/null; then
fi
}
function fuRESTORE_EWSCFG () {
echo "### Restore volume mount for ews.cfg in tpot.yml if it existed before"
if grep '/data/ews/conf/ews.cfg:/opt/ewsposter/ews.cfg' $myEXTPATH > /dev/null; then
sed -i '/\/opt\/ewsposter\/ews.ip/a\\ \ \ \ \ - /data/ews/conf/ews.cfg:/opt/ewsposter/ews.cfg' /opt/tpot/etc/tpot.yml
fi
}
################
# Main section #
@ -320,3 +327,4 @@ fuBACKUP
fuSELFUPDATE "$0" "$@"
fuUPDATER
fuRESTORE_HPFEED
fuRESTORE_EWSCFG