mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
Restore custom ews.cfg volume after update
- restore ews.cfg volume mount in tpot.yml
This commit is contained in:
parent
886f08f7e2
commit
581f06e2e8
1 changed files with 8 additions and 0 deletions
|
@ -258,6 +258,13 @@ echo "### Please reboot."
|
|||
echo
|
||||
}
|
||||
|
||||
function fuRESTORE_EWSCFG () {
|
||||
if [ -f '/data/ews/conf/ews.cfg' ]; 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
|
||||
}
|
||||
|
||||
|
||||
################
|
||||
# Main section #
|
||||
|
@ -289,3 +296,4 @@ fuSTOP_TPOT
|
|||
fuBACKUP
|
||||
fuSELFUPDATE "$0" "$@"
|
||||
fuUPDATER
|
||||
fuRESTORE_EWSCFG
|
||||
|
|
Loading…
Reference in a new issue