Test the binary to see if we unpack or not Docker image
This commit is contained in:
parent
ba318533e9
commit
217b94698c
1 changed files with 2 additions and 1 deletions
|
@ -88,7 +88,8 @@ files.directory(
|
||||||
mode=755
|
mode=755
|
||||||
)
|
)
|
||||||
|
|
||||||
if not host.fact.directory(host.data.undocker_dst):
|
# If the binary is here, undockerized image should be fine, don't extract again
|
||||||
|
if not host.fact.file(host.data.undocker_dst+'/photoprism/bin/photoprism'):
|
||||||
server.shell(
|
server.shell(
|
||||||
name='Undocker the Docker image',
|
name='Undocker the Docker image',
|
||||||
chdir=host.data.undocker_dst,
|
chdir=host.data.undocker_dst,
|
||||||
|
|
Reference in a new issue