Project

General

Profile

Actions

Feature #8403

closed

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

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

Status:
Resolved
Priority:
High
Assigned To:
Category:
Engine
Target version:
Start date:
10/30/2014
Due date:
% Done:

100%

Estimated time:

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
Actions

Also available in: Atom PDF