Leantime / leantime

Leantime is a goals focused project management system for non-project managers. Building with ADHD, Autism, and dyslexia in mind.
https://leantime.io
GNU Affero General Public License v3.0
4.79k stars 597 forks source link

[Bug]: Updater updates again to the same version it just installed #2761

Closed bedo2991 closed 1 week ago

bedo2991 commented 1 month ago

What is your set up?

Self Hosted Server

Version

3.2.1

Describe the issue

Update is successfull, but the updater thinks it needs to update again

Reproduction steps

  1. sudo ./updateLeantime.sh
  2. Perform the update, it ends successfully
  3. sudo ./updateLeantime.sh
  4. "There is an update available!"

Additional Notes

sudo ./updateLeantime.sh 

    _                 _   _                             
   | |   ___ __ _ _ _| |_(_)_ __  ___                   
   | |__/ -_) _` | ' \  _| | '  \/ -_)                  
   |____\___\__,_|_||_\__|_|_|_|_\___|      _           
                     | | | |_ __  __| |__ _| |_ ___ _ _ 
                     | |_| | '_ \/ _` / _` |  _/ -_) '_|
                      \___/| .__/\__,_\__,_|\__\___|_|  
                           |_|                          

For correct operation of this script, please ensure you have zip, unzip, wget and curl installed.

There is an update available!
Do you want to update from v3.2.0-beta-2 to v3.2.1? [Y/n] Y
Do you want to create a backup before updating (recommended) [Y/n]Y

Creating a backup in the 'backup' folder
 - retrieving the database connection details (Done)
 - Backing up the database in backup/leantime_db_backup_20241025_130633.sql.gz (Done)

 - Backing up the files in backup/leantime_file_backup_20241025_130633.zip (Done)

Starting the update process
 - Downloading the updatefile (Leantime-v3.2.1.zip) in the 'update' folder (Done)

 - Extracting the updatefile (Done)

 - Applying the update (Done)

 - Cleaning up the temporary files (Done)

Leantime has been succesfully updated

sudo ./updateLeantime.sh 

    _                 _   _                             
   | |   ___ __ _ _ _| |_(_)_ __  ___                   
   | |__/ -_) _` | ' \  _| | '  \/ -_)                  
   |____\___\__,_|_||_\__|_|_|_|_\___|      _           
                     | | | |_ __  __| |__ _| |_ ___ _ _ 
                     | |_| | '_ \/ _` / _` |  _/ -_) '_|
                      \___/| .__/\__,_\__,_|\__\___|_|  
                           |_|                          

For correct operation of this script, please ensure you have zip, unzip, wget and curl installed.

There is an update available!
Do you want to update **from v3.2.0-beta-2 to v3.2.1?** [Y/n] 
bedo2991 commented 1 week ago

Same in 3.3.0

marcelfolaron commented 1 week ago

I just realized you are using the update script. That was deprecated in before 2.x and removed in 3.0.0

To update please download the release package and replace the files manually.

Marcel Folaron - Co-Founder

phone. 206-371-1325

email. @.***

web. https://leantime.io

On Sat, Nov 16, 2024 at 10:48 Francesco Bedini @.***> wrote:

Same in 3.3.0

— Reply to this email directly, view it on GitHub https://github.com/Leantime/leantime/issues/2761#issuecomment-2480624604, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALG4EFV6OSGT4NAACG4MCAD2A5SLRAVCNFSM6AAAAABQTBOJAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBQGYZDINRQGQ . You are receiving this because you were assigned.Message ID: @.***>