From c0eb860e6958b0196e80c263a2397f626740b846 Mon Sep 17 00:00:00 2001 From: Martin Berghaus Date: Tue, 21 Oct 2025 22:18:34 +0200 Subject: [PATCH] pull first to handle repo updates from others and stop container after 10m if it is in fail state. --- script/ssl/start.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/ssl/start.sh b/script/ssl/start.sh index ed1eea2..e5982d5 100644 --- a/script/ssl/start.sh +++ b/script/ssl/start.sh @@ -56,6 +56,7 @@ function ensureRepositoryIsAvailableAndWritable() { [ -d "${_REPOSITORY_FOLDER}.git" ] \ && echo \ + && git -C "${_REPOSITORY_FOLDER}" pull &> /dev/null \ && git -C "${_REPOSITORY_FOLDER}" push --dry-run &> /dev/null \ && echo "Writable repository found in folder '${_REPOSITORY_FOLDER}'." \ && return 0 @@ -95,7 +96,7 @@ function prepareThisRuntimeForUsingGitOrIgnore() { && return 0 echo "No job will run inside this container because there is an issue." - echo "The container keeps running, please check your setup..." + echo "The container keeps running for 10min, please check your setup..." return 1 } @@ -117,7 +118,7 @@ echo > /autoACME.log # Generate SSH keys and setup Git if a repository is specified, on failure keep the container running prepareThisRuntimeForUsingGitOrIgnore \ - || tail -f /autoACME.log + || timeout --preserve-status 10m tail -f /autoACME.log # Ensure acme.sh ist installed /renewCerts.sh --setup >> /autoACME.log \