Test the binary to see if we unpack or not Docker image

This commit is contained in:
Benoit S 2021-09-27 22:13:43 +09:00
parent ba318533e9
commit 217b94698c

View file

@ -88,7 +88,8 @@ files.directory(
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(
name='Undocker the Docker image',
chdir=host.data.undocker_dst,