fix(ntfy-acl): avoid fail if path not present
All checks were successful
Check meta / check_dns (push) Successful in 16s
Check meta / check_meta (pull_request) Successful in 16s
Check meta / check_meta (push) Successful in 19s
Check meta / check_dns (pull_request) Successful in 19s
Check workflows / check_workflows (pull_request) Successful in 21s
Build all the nodes / Jaccess04 (pull_request) Successful in 26s
Build all the nodes / Jaccess01 (pull_request) Successful in 26s
Run pre-commit on all files / pre-commit (push) Successful in 28s
Build all the nodes / netcore01 (pull_request) Successful in 27s
Build all the nodes / netcore02 (pull_request) Successful in 28s
Run pre-commit on all files / pre-commit (pull_request) Successful in 33s
Build all the nodes / ap01 (pull_request) Successful in 47s
Build all the nodes / cof02 (pull_request) Successful in 1m7s
Build the shell / build-shell (pull_request) Successful in 42s
Build all the nodes / lab-router01 (pull_request) Successful in 1m13s
Build all the nodes / geo01 (pull_request) Successful in 1m23s
Build all the nodes / geo02 (pull_request) Successful in 1m23s
Build all the nodes / hypervisor02 (pull_request) Successful in 1m23s
Build all the nodes / bridge01 (pull_request) Successful in 1m25s
Build all the nodes / iso (pull_request) Successful in 1m24s
Build all the nodes / hypervisor01 (pull_request) Successful in 1m26s
Build all the nodes / hypervisor03 (pull_request) Successful in 1m27s
Build all the nodes / tower01 (pull_request) Successful in 1m12s
Build all the nodes / zulip01 (pull_request) Successful in 1m9s
Build all the nodes / web02 (pull_request) Successful in 1m22s
Build all the nodes / build01 (pull_request) Successful in 1m51s
Build all the nodes / rescue01 (pull_request) Successful in 1m39s
Build all the nodes / vault01 (pull_request) Successful in 1m38s
Build all the nodes / krz01 (pull_request) Successful in 2m6s
Build all the nodes / storage01 (pull_request) Successful in 1m54s
Build all the nodes / web03 (pull_request) Successful in 1m45s
Build all the nodes / compute01 (pull_request) Successful in 2m14s
Build all the nodes / web01 (pull_request) Successful in 1m55s

This commit is contained in:
catvayor 2025-06-14 22:09:08 +02:00
parent 0c0046d24a
commit 57d644f455
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: with open("/var/lib/ntfy-sh/.acl-path") as acl_path_fp:
acl_path: str = acl_path_fp.read().strip() acl_path: str = acl_path_fp.read().strip()
except OSError: except OSError:
print("[!] Cannot open .acl-path") acl_path: str = ""
exit(1)
if acl_path == "@acl_file@": if acl_path == "@acl_file@":
print("[-] Unchanged ACL file, exiting") print("[-] Unchanged ACL file, exiting")