Age | Commit message (Collapse) | Author |
|
os.system does print the ouput of the command, run() does not.
A new function called call() does the printing and return the error code.
|
|
Previously any failure to set the hostname would have been
ignored. Part of the convertion, if the change fail, the commit
will fail too.
|
|
|
|
|
|
This change makes "dnsdomainname" and "hostname -f" operable
|
|
|
|
|
|
|
|
|
|
return_effective_values output.
|
|
|
|
|
|
|
|
- checking if the hostname has changed, otherwise the script and systemd try to restart
rsyslogd at the same time, at the end it's not started at all.
|
|
|
|
Remove possible trialing (.) when invoking hostnamectl. A hostname with
a trailing (.) is not supported in hostnamectl.
|
|
- checks if a variable exists to avoid setting None on defined defaults
|
|
|
|
|
|
/etc/resolv.conf
|
|
running.
|
|
|
|
remove old function calls
|
|
E.g. DHCP server can update /etc/hosts with somw mappings - those mappings
were lost on any subsequent invocation of host_name.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
with VyOS paths.
|