auto-sync-opus46
This commit is contained in:
22
fix_l99_refresh.py
Normal file
22
fix_l99_refresh.py
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
path = "/var/www/html/api/handlers/l99-honest-refresh.sh"
|
||||||
|
with open(path, "rb") as f:
|
||||||
|
raw = f.read()
|
||||||
|
|
||||||
|
# Master timeout 90 -> 200
|
||||||
|
old = b"MO=$(timeout 90 php -r"
|
||||||
|
new = b"MO=$(timeout 200 php -r"
|
||||||
|
if old in raw:
|
||||||
|
raw = raw.replace(old, new, 1)
|
||||||
|
print("Master timeout 90 -> 200")
|
||||||
|
|
||||||
|
# Opus timeout 90 -> 300
|
||||||
|
old = b"OO=$(timeout 90 php -r"
|
||||||
|
new = b"OO=$(timeout 300 php -r"
|
||||||
|
if old in raw:
|
||||||
|
raw = raw.replace(old, new, 1)
|
||||||
|
print("Opus timeout 90 -> 300")
|
||||||
|
|
||||||
|
with open(path, "wb") as f:
|
||||||
|
f.write(raw)
|
||||||
|
print(f"size: {len(raw)}")
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"timestamp": "2026-04-20T04:35:01.922426",
|
"timestamp": "2026-04-20T04:40:02.640971",
|
||||||
"layers": {
|
"layers": {
|
||||||
"DOCKER": {
|
"DOCKER": {
|
||||||
"pass": 19,
|
"pass": 19,
|
||||||
@@ -7,9 +7,9 @@
|
|||||||
"pct": 100
|
"pct": 100
|
||||||
},
|
},
|
||||||
"PORTS-S204": {
|
"PORTS-S204": {
|
||||||
"pass": 5,
|
"pass": 4,
|
||||||
"total": 5,
|
"total": 5,
|
||||||
"pct": 100
|
"pct": 80
|
||||||
},
|
},
|
||||||
"SYSTEMD": {
|
"SYSTEMD": {
|
||||||
"pass": 2,
|
"pass": 2,
|
||||||
@@ -62,8 +62,8 @@
|
|||||||
"pct": 100
|
"pct": 100
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pass": 339,
|
"pass": 338,
|
||||||
"fail": 0,
|
"fail": 1,
|
||||||
"warn": 0,
|
"warn": 0,
|
||||||
"total": 339,
|
"total": 339,
|
||||||
"score": 100,
|
"score": 100,
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 120 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 230 KiB After Width: | Height: | Size: 226 KiB |
Reference in New Issue
Block a user