mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-10-27 02:34:43 +00:00
Restore custom ews.cfg in tpot.yml
This commit is contained in:
parent
b064764d31
commit
425d58f873
1 changed files with 8 additions and 0 deletions
|
|
@ -288,6 +288,13 @@ if grep 'EWS_HPFEEDS_ENABLE=true' $myEXTPATH > /dev/null; then
|
||||||
fi
|
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 #
|
# Main section #
|
||||||
|
|
@ -320,3 +327,4 @@ fuBACKUP
|
||||||
fuSELFUPDATE "$0" "$@"
|
fuSELFUPDATE "$0" "$@"
|
||||||
fuUPDATER
|
fuUPDATER
|
||||||
fuRESTORE_HPFEED
|
fuRESTORE_HPFEED
|
||||||
|
fuRESTORE_EWSCFG
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue