Scripts to ease the installation and update an existing installation of icemac.addressbook to a new version of the package.
Contents
Copyright (c) 2016-2020 Michael Howitz
This package is licensed under the MIT License, see LICENSE.txt inside the package.
Install the package icemac.install.addressbook using pip:
$ pip install icemac.install.addressbook
This creates two scripts in the bin directory:
install-addressbook
archive-addressbook
Start the script using:
$ bin/install-addressbook [VERSION_NUMBER]
Where VERSION_NUMBER
is the number of the version you want to install resp.
you want to update to. If you leave it out the newest version is used.
The script executes the following steps:
- Download the source distribution of icemac.addressbook to a temporary directory.
- Extract the source distribution to the current working directory.
- Run the install script. If there is a symlink named
current
pointing to a previous icemac.addressbook installation it uses its configuration as default answers for the questions in the installation process. - Create or replace the new symlink named
current
pointing to the new installation.
This script is helpful if you want to switch back to an older installed address book version in case of an error.
Start the script using:
$ bin/make-current-addressbook VERSION_NUMBER
Where VERSION_NUMBER
is the number of the version you want to make the
current one.
The script executes the following steps:
- Create or replace the new symlink named
current
pointing to the new installation.
After installing a new version of the address book you could archive the previous one using this script.
Start the script using:
$ bin/archive-addressbook 4.1
Where 4.1
is the version number of the installation you want to archive.
The script executes the following steps:
- Create an archive of the requested
icemac.addressbook installation (as installed by install-addressbook) in
a directory named
archive
. (Thearchive
directory is created if it not yet exists.) - Delete the requested icemac.addressbook installation.
If you want change some answers to the questions asked during the installation, you can run this script.
Start the script using:
$ bin/change-addressbook-config
The script executes the following steps:
- The configuration questions get re-presented to you with your previously entered values as defaults.
- The address book instance has to be restarted afterwards. This can be done automatically by the script or manually.
Clone the repository:
$ git clone https://github.com/icemac/icemac.install.addressbook
Create a virtualenv, install the installer and run it:
$ cd icemac.install.addressbook $ virtualenv-2.7 . $ bin/pip install zc.buildout $ bin/buildout -n