~hloeung/ubuntu-repository-cache/retry-for-each-host

Viewing all changes in revision 262.

  • Committer: mergebot at canonical
  • Author(s): "Haw Loeung"
  • Date: 2019-09-09 06:08:48 UTC
  • mfrom: (260.2.9 ubuntu-repository-cache)
  • Revision ID: mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20190909060848-xfi7p8lmlctqkwpd
Don't use hookenv.config() for apache root

ubuntu_repository_cache_sync() runs as the 'www-sync' user but permissions of charm/.juju-persistent-config as used by hookenv.config() are restricted to root 0600. Instead, we work out apache root from config file.

Reviewed-on: https://code.launchpad.net/~hloeung/ubuntu-repository-cache/no-hookenv-config-for-apache-root/+merge/372458
Reviewed-by: Joel Sing <joel.sing@canonical.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: