mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-10-28 19:12:53 +00:00
Compare commits
3 commits
8a288a5a0d
...
560451c391
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
560451c391 | ||
|
|
bec64f2306 | ||
|
|
b08bd2bd1c |
1 changed files with 4 additions and 0 deletions
|
|
@ -188,6 +188,10 @@ function fuRESTORE () {
|
|||
fi
|
||||
echo "### Restoring T-Pot config file .env"
|
||||
tar xvf $myARCHIVE .env -C $HOME/tpotce >/dev/null 2>&1
|
||||
# Backup file (.env) contains a record of the TPOT_VERSION that is used in docker-compose commmands.
|
||||
# We should upgrade the version in this file after restoring the backup.
|
||||
newVERSION=$(cat version)
|
||||
sed -i 's/^TPOT_VERSION=.*/TPOT_VERSION=${newVERSION}/' $HOME/tpotce/.env
|
||||
}
|
||||
|
||||
################
|
||||
|
|
|
|||
Loading…
Reference in a new issue