mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-05-06 00:36:44 +00:00
fix
This commit is contained in:
@@ -79,6 +79,12 @@ namespace = "kubeinvaders"
|
||||
# r.delete(key)
|
||||
|
||||
while True:
|
||||
if not r.exists("log_cleaner"):
|
||||
if pathlib.Path("/var/www/html/chaoslogs.html").exists():
|
||||
os.remove("/var/www/html/chaoslogs.html")
|
||||
r.set(f"log_cleaner", "foobar")
|
||||
r.expire(f"log_cleaner", 30)
|
||||
|
||||
logging.info("Loop iteration...")
|
||||
file = pathlib.Path('/var/www/html/chaoslogs.html')
|
||||
if not file.exists():
|
||||
|
||||
Reference in New Issue
Block a user