changeset 2046:e0896f65c847 acme-tiny

fix temp_dir_string initiation
author Violet7
date Sun, 09 Nov 2025 02:38:09 -0800
parents 265dc9af6a49
children
files src/luan/host/https.luan
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/host/https.luan	Sun Nov 09 02:31:57 2025 -0800
+++ b/src/luan/host/https.luan	Sun Nov 09 02:38:09 2025 -0800
@@ -42,6 +42,7 @@
 	-- declare these so they are visible in the catch and finally blocks
   local guard_file = "/tmp/acme_setup_locks/"..domain..".lock"
   local guard_uri = uri("file:"..guard_file)
+  local temp_dir_string = "/tmp/acme_setup/"..domain
 
 	if is_https then	-- https
 		if not key_file.exists() then
@@ -60,7 +61,6 @@
 				-- set up a temporary barebones nginx conf
 				-- to serve acme challenges on the domain
 				try
-					local temp_dir_string = "/tmp/acme_setup/"..domain
 
 					-- recursion guard, must have this to prevent
 					-- the http request from invoking this code