From b08bd2bd1c8630d37ebd4db4dde6ffa331b06f9c Mon Sep 17 00:00:00 2001 From: natitomattis Date: Thu, 10 Apr 2025 07:35:27 -0300 Subject: [PATCH] small fix on upgrade.sh --- update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/update.sh b/update.sh index 3f54a207..a0c3acdc 100755 --- a/update.sh +++ b/update.sh @@ -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 + # Backupped 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 } ################