Added Cloudflare service to DDNS
This commit is contained in:
parent
82f3058577
commit
df09e99888
4 changed files with 170 additions and 54 deletions
6
core.py
6
core.py
|
|
@ -168,7 +168,7 @@ def service_warning(action, svc, stderr):
|
|||
msg = stderr.strip()
|
||||
print(f"WARNING: Failed to {action} {svc}: {msg}")
|
||||
if "not found" in msg.lower() or "not-found" in msg.lower():
|
||||
print(f" -> Package may not be installed. Run: sudo ./core.py --install")
|
||||
print(f" -> Package may not be installed. Run: sudo python3 core.py --install")
|
||||
|
||||
|
||||
def die(msg):
|
||||
|
|
@ -2334,7 +2334,7 @@ def apply_avahi(data):
|
|||
import shutil
|
||||
if not shutil.which("avahi-daemon"):
|
||||
print("avahi-daemon is not installed.")
|
||||
print(" -> Run: sudo ./core.py --install")
|
||||
print(" -> Run: sudo python3 core.py --install")
|
||||
return
|
||||
|
||||
ifaces = avahi_interfaces(data)
|
||||
|
|
@ -2344,7 +2344,7 @@ def apply_avahi(data):
|
|||
return
|
||||
|
||||
if not AVAHI_CONF_FILE.exists():
|
||||
print(f"WARNING: {AVAHI_CONF_FILE} not found. Run: sudo ./core.py --install")
|
||||
print(f"WARNING: {AVAHI_CONF_FILE} not found. Run: sudo python3 core.py --install")
|
||||
return
|
||||
|
||||
content = build_avahi_conf(data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue