Adjust restore procedure on upgrade.sh (#1777)

* small fix on upgrade.sh
* typo
This commit is contained in:
natitomattis 2025-07-04 12:17:49 -03:00 committed by GitHub
parent 8e79c596f3
commit 1c259e8b10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -188,6 +188,10 @@ function fuRESTORE () {
fi fi
echo "### Restoring T-Pot config file .env" echo "### Restoring T-Pot config file .env"
tar xvf $myARCHIVE .env -C $HOME/tpotce >/dev/null 2>&1 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
} }
################ ################