fix real ip jobs

This commit is contained in:
bunkerity 2023-03-17 18:26:42 +01:00
parent a02218bc83
commit ccde5c74f1
2 changed files with 4 additions and 1 deletions

View File

@ -60,7 +60,7 @@ def cache_file(file, cache, _hash):
copy(file, cache)
Path(file).unlink()
md = {"date": datetime.timestamp(datetime.now()), "checksum": _hash}
Path(cache).write_text(dumps(md))
Path(f"{cache}.md").write_text(dumps(md))
except:
return False, f"exception :\n{format_exc()}"
return ret, err

View File

@ -37,6 +37,9 @@ class AutoconfTest(Test):
if isdir("/tmp/autoconf"):
rmtree("/tmp/autoconf")
mkdir("/tmp/autoconf")
if isdir("/tmp/www"):
rmtree("/tmp/www")
mkdir("/tmp/www")
copy("./misc/integrations/autoconf.yml", "/tmp/autoconf/docker-compose.yml")
compose = "/tmp/autoconf/docker-compose.yml"
Test.replace_in_file(