Skip to content

Commit

Permalink
Make sure htpasswd is available before configuring the registry (#35)
Browse files Browse the repository at this point in the history
The command is required to create /etc/docker/registry/htpasswd when
basic authentication is chosen.

LP: #1829529
  • Loading branch information
nobuto-m authored and kwmonroe committed May 20, 2019
1 parent 34ebe83 commit 002a518
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reactive/docker_registry.py
Expand Up @@ -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.')
Expand Down

0 comments on commit 002a518

Please sign in to comment.