mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix shenanigans with BunkerNet and the instance.id file
This commit is contained in:
parent
a55e2699b1
commit
740018e267
2 changed files with 2 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ try:
|
|||
db = Database(logger, sqlalchemy_string=getenv("DATABASE_URI", None), pool=False)
|
||||
bunkernet_id = get_file_in_db("instance.id", db)
|
||||
if bunkernet_id:
|
||||
bunkernet_path.joinpath("bunkernet.id").write_bytes(bunkernet_id)
|
||||
bunkernet_path.joinpath("instance.id").write_bytes(bunkernet_id)
|
||||
logger.info("Successfully retrieved BunkerNet ID from db cache")
|
||||
else:
|
||||
logger.info("No BunkerNet ID found in db cache")
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ try:
|
|||
db = Database(logger, sqlalchemy_string=getenv("DATABASE_URI", None), pool=False)
|
||||
bunkernet_id = get_file_in_db("instance.id", db)
|
||||
if bunkernet_id:
|
||||
bunkernet_path.joinpath("bunkernet.id").write_bytes(bunkernet_id)
|
||||
bunkernet_path.joinpath("instance.id").write_bytes(bunkernet_id)
|
||||
logger.info("Successfully retrieved BunkerNet ID from db cache")
|
||||
else:
|
||||
logger.info("No BunkerNet ID found in db cache")
|
||||
|
|
|
|||
Loading…
Reference in a new issue