From 002a518ffa9c39e4d57ea93c1b7b71312b3948ed Mon Sep 17 00:00:00 2001 From: Nobuto Murata Date: Tue, 21 May 2019 04:42:00 +0900 Subject: [PATCH] Make sure htpasswd is available before configuring the registry (#35) The command is required to create /etc/docker/registry/htpasswd when basic authentication is chosen. LP: #1829529 --- reactive/docker_registry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactive/docker_registry.py b/reactive/docker_registry.py index f7dda52..2af12aa 100644 --- a/reactive/docker_registry.py +++ b/reactive/docker_registry.py @@ -17,7 +17,8 @@ from charms.reactive.helpers import data_changed -@when('docker.ready') +@when('docker.ready', + 'apt.installed.apache2-utils') @when_not('charm.docker-registry.configured') def start(): layer.status.maint('Configuring the registry.')