Improve the deployment mechanism

Authored by Seb35 on Feb 11 2018, 5:19 PM.

Description

Improve the deployment mechanism

The deployment mechanism permits to delay a bit the update:

  • first you change the version (at this point the previous version is still used),
  • then you run the script maintenance/update.php (with the new version),
  • at the end of this run, the new version becomes globally available.

Because of this "caching" step, deleted wikis still appeared. This commits
fixes this.

Additionnally:

  • when the ‘deployments’ file is declared but nonexistant, it is created with the content of the ‘versions’ file -- even if this could only be a part of the whole farm if some wikis have their versions declared in the ‘variables’ files;
  • the functions setVersion and updateVersion are partly re-written to be more readable.

Bug: T162733
Change-Id: I01659d1faa7a541a706e44c2b0ea65dad94ad2cd

Details

Committed
Seb35Feb 13 2018, 2:01 PM
Parents
rEMWF364840b8b931: Bug in path-based farms
Branches
Unknown
Tags
Unknown
References
refs/changes/03/409703/10
ChangeId
I01659d1faa7a541a706e44c2b0ea65dad94ad2cd