From 9427a9b157c6900cd4c31f6bb3afa6b9b27a400c Mon Sep 17 00:00:00 2001 From: deflax Date: Wed, 11 Dec 2024 10:53:41 +0000 Subject: [PATCH] execute renew-certificate from any dir --- renew-certificates.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/renew-certificates.sh b/renew-certificates.sh index b789116..c8f8eb2 100755 --- a/renew-certificates.sh +++ b/renew-certificates.sh @@ -1,5 +1,8 @@ #!/bin/bash +parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) +cd $parent_path + source variables.env CB=`docker ps | grep certbot | cut -d ' ' -f 1`