From 217b94698ce9d490d55d297b96e8cc1085389da8 Mon Sep 17 00:00:00 2001 From: Benoit S Date: Mon, 27 Sep 2021 22:13:43 +0900 Subject: [PATCH] Test the binary to see if we unpack or not Docker image --- deploy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy.py b/deploy.py index 19b347c..4661fc1 100644 --- a/deploy.py +++ b/deploy.py @@ -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,