misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-10-24 17:52:43 +02:00
parent 0f171c35ce
commit a25395a945
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

View File

@ -34,6 +34,7 @@ def set_name(new_name):
logging.debug("new hosts:\n%s\n" % patched)
fp.write(patched)
os.system("hostname '%s'" % new_name)
_name = new_name
logging.info("restarting avahi ...")
os.system("service avahi-daemon restart")