Actions
Feature #8403
closedimplement new commands lavoisier-upgrade.sh and lavoisier-restore.sh
Start date:
10/30/2014
Due date:
% Done:
100%
Estimated time:
Description
Example:
lavoisier-upgrade.sh 2.1.1-SNAPSHOTlavoisier-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)
- 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