Feature #8403

implement new commands lavoisier-upgrade.sh and lavoisier-restore.sh

Added by Reynaud Sylvain over 5 years ago. Updated over 5 years ago.

Status:ResolvedStart date:10/30/2014
Priority:HighDue date:
Assigned To:Reynaud Sylvain% Done:

100%

Category:Engine
Target version:2.1.2

Description

Example:

lavoisier-upgrade.sh 2.1.1-SNAPSHOT

lavoisier-upgrade.sh:
  • check existence of needed commands (diff, patch, zip, unzip, xsltproc)
  • check existence of the installer of old version (in directory 'upgrade')
  • stop lavoisier service
  • remove previous backup (from directory 'upgrade/backup')
  • save user config:
    • create patch (in file 'upgrade/backup/patch.txt')
    • save current langage version (in file 'upgrade/backup/language.txt')
    • move old installer from directory 'upgrade' to 'upgrade/backup'
  • download new version of lavoisier (to directory 'upgrade')
    • if name contains 'SNAPSHOT', then get the latest
    • else get the only matching file
  • uninstall old version (remove all but 'upgrade' and VCS directories)
  • install new version (unzip all)
  • restore user config (apply patch and restore old langage version)
lavoisier-restore.sh:
  • check existence of needed commands
  • check existence of needed files (in directory 'upgrade/backup')
  • stop lavoisier service
  • uninstall new version
  • install old version
  • restore user config

History

#1 Updated by Reynaud Sylvain over 5 years ago

  • Status changed from New to Resolved
  • Assigned To set to Reynaud Sylvain
  • % Done changed from 0 to 100

Also available in: Atom PDF