~cjwatson/ubuntu-archive-publishing/doc-deployment

Viewing all changes in revision 124.

  • Committer: Colin Watson
  • Date: 2023-08-18 13:37:09 UTC
  • Revision ID: cjwatson@canonical.com-20230818133709-udff9rbbwvxgmstx
Conditionalize some behaviour on SITE_NAME.

As described in
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/449286,
we need to handle telling the difference between Launchpad's production
and non-production deployments in a somewhat different way in order to
support charmed deployments.  Update a couple of scripts to check the
new SITE_NAME environment variable as well as LPCONFIG.  This retains
compatibility with legacy deployments (`LPCONFIG=ftpmaster-publish` etc.
as opposed to `LPCONFIG=launchpad-ftpmaster-publisher` etc.) for now.

While I'm here, also arrange that we only try to trigger mirrors if
we're running on the primary archive publisher for production.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: