Development

This commit is contained in:
Matthew Grotke 2026-05-25 02:24:54 -04:00
parent c6d2ded525
commit e2d33e04d5

View file

@ -142,6 +142,13 @@ WG_KEEPALIVE = 25
# Helpers
# ===================================================================
def chown_to_script_dir_owner(path):
try:
stat = SCRIPT_DIR.stat()
os.chown(path, stat.st_uid, stat.st_gid)
except OSError:
pass
def service_warning(action, svc, stderr):
"""Print a service start/restart warning, adding install hint if unit not found."""
msg = stderr.strip()