Development
This commit is contained in:
parent
c6d2ded525
commit
e2d33e04d5
1 changed files with 7 additions and 0 deletions
|
|
@ -142,6 +142,13 @@ WG_KEEPALIVE = 25
|
||||||
# Helpers
|
# 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):
|
def service_warning(action, svc, stderr):
|
||||||
"""Print a service start/restart warning, adding install hint if unit not found."""
|
"""Print a service start/restart warning, adding install hint if unit not found."""
|
||||||
msg = stderr.strip()
|
msg = stderr.strip()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue