fix(ntfy-acl): avoid fail if path not present
All checks were successful
Check meta / check_dns (pull_request) Successful in 15s
Check workflows / check_workflows (pull_request) Successful in 17s
Build all the nodes / Jaccess04 (pull_request) Successful in 23s
Check meta / check_meta (pull_request) Successful in 27s
Run pre-commit on all files / pre-commit (pull_request) Successful in 30s
Build all the nodes / Jaccess01 (pull_request) Successful in 37s
Run pre-commit on all files / pre-commit (push) Successful in 40s
Build all the nodes / netcore01 (pull_request) Successful in 25s
Build all the nodes / netcore02 (pull_request) Successful in 25s
Build all the nodes / geo02 (pull_request) Successful in 50s
Build all the nodes / hypervisor03 (pull_request) Successful in 51s
Build all the nodes / ap01 (pull_request) Successful in 53s
Build all the nodes / build01 (pull_request) Successful in 57s
Build all the nodes / hypervisor01 (pull_request) Successful in 1m10s
Build all the nodes / bridge01 (pull_request) Successful in 1m12s
Build all the nodes / hypervisor02 (pull_request) Successful in 1m10s
Build all the nodes / geo01 (pull_request) Successful in 1m12s
Build all the nodes / lab-router01 (pull_request) Successful in 1m3s
Build all the nodes / cof02 (pull_request) Successful in 1m23s
Build all the nodes / iso (pull_request) Successful in 1m24s
Build all the nodes / compute01 (pull_request) Successful in 1m25s
Build the shell / build-shell (pull_request) Successful in 28s
Build all the nodes / tower01 (pull_request) Successful in 50s
Build all the nodes / rescue01 (pull_request) Successful in 1m14s
Build all the nodes / krz01 (pull_request) Successful in 1m45s
Build all the nodes / vault01 (pull_request) Successful in 1m6s
Build all the nodes / web02 (pull_request) Successful in 1m0s
Build all the nodes / zulip01 (pull_request) Successful in 57s
Build all the nodes / web03 (pull_request) Successful in 1m2s
Build all the nodes / storage01 (pull_request) Successful in 1m18s
Build all the nodes / web01 (pull_request) Successful in 1m13s

This commit is contained in:
catvayor 2025-06-14 22:09:08 +02:00
parent 02f19e6f64
commit fdc80e65d4
Signed by: lbailly
GPG key ID: CE3E645251AC63F3

View file

@ -39,8 +39,7 @@ try:
with open("/var/lib/ntfy-sh/.acl-path") as acl_path_fp:
acl_path: str = acl_path_fp.read().strip()
except OSError:
print("[!] Cannot open .acl-path")
exit(1)
acl_path: str = ""
if acl_path == "@acl_file@":
print("[-] Unchanged ACL file, exiting")