mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-10-25 17:54:44 +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
|
||||
}
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue