Skip to content

Upgrading Scrummage

matamorphosis edited this page Jan 30, 2022 · 13 revisions

Support

Support for Scrummage upgrades is provided for tier 3 and 4 monthly sponsors, and ad-hoc support is provided based on the relevant time-limit. For more details, you can contact us via the sponsors page.

General Upgrades

Scrummage is considered to be "rolling software", meaning regular updates and upgrades are made to both front-end and back-end code. These updates/upgrades improve the security, functionality, and design of the web application. Therefore, it is in a user's best interest to stay up to date on these updates.

This being said, directory naming conventions and plugin names remain consistent. Also, changes to how the database is structured are rare, and in the event, the database structure is changed. It will be part of a major version upgrade, and it will be clearly mentioned on the main README.md file with instructions on how to upgrade provided.

Therefore, rolling upgrades are pretty easy, you can either pull the latest code from GitHub, which will only overwrite the necessary files or you can clone the repository to a new directory. Please do the following if going for the second option:

DO NOT DELETE YOUR OLD COPY OF SCRUMMAGE UNTIL AFTER YOU HAVE FINISHED.

  1. Clone the latest repository to your machine.

  2. Copy your "protected" folder from your old directory to your new one. This folder is located at <YOUR SCRUMMAGE DIRECTORY>/app/static/protected and contains all output data from running the plugins, including screenshots and local copies of discovered data.

  3. Ensure any new plugins that require API keys or other configurations have an entry in the config.json file. The list of plugins and requirements can be seen here.

  4. Open the new config.json file, and migrate all your API keys to your new config.json file.

  5. Finally rerun the below command to install all python requirements. This is to ensure any new libraries added in the latest upgrade will be installed on your system:

user@linux:<SCRUMMAGE DIRECTORY>/installation$ pip3 install -r python_requirements.txt

Upgrading config.json to for compatibility with version 3.5

Follow the below instuctions to convert your existing config.json file to the new format

  1. Copy existing config.json file to the upgrade directory
user@linux:<SCRUMMAGE DIRECTORY>$ cp ./app/plugins/common/config.json ./installation/3.4_to_3.5_upgrade/config.json
  1. Navigate to the upgrade directory and Backup old config file
user@linux:<SCRUMMAGE DIRECTORY>$ cd ./installation/3.4_to_3.5_upgrade && cp ./config.json ./config_bak.json
  1. Run the upgrade utility
user@linux:<SCRUMMAGE DIRECTORY>/installation/3.4_to_3.5_upgrade$ python3 3.5_Upgrade.py
  1. The utility will create a new file called config_new.json, move this to the config directory.
user@linux:<SCRUMMAGE DIRECTORY>/installation/3.4_to_3.5_upgrade$ cp ./config_new.json ../../app/plugins/common/config/config.json

Clone this wiki locally