From b08bd2bd1c8630d37ebd4db4dde6ffa331b06f9c Mon Sep 17 00:00:00 2001 From: natitomattis Date: Thu, 10 Apr 2025 07:35:27 -0300 Subject: [PATCH 1/2] 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 } ################ From bec64f2306bfc47932d1e62d46bc628721190395 Mon Sep 17 00:00:00 2001 From: natitomattis Date: Thu, 10 Apr 2025 07:59:15 -0300 Subject: [PATCH 2/2] typo --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index a0c3acdc..460f38bb 100755 --- a/update.sh +++ b/update.sh @@ -188,7 +188,7 @@ 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. + # 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