summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-05-18 16:55:30 +0200
committerDaniil Baturin <daniil@baturin.org>2018-05-18 16:55:30 +0200
commitbf4b0e70fdab43dfbd2802bee960f5e295347119 (patch)
tree1477288a947906a9d1d6e1c5442abc9102988a21 /src/conf_mode
parent5ffc6bb5c20651bf16cec86433e2470014fbb823 (diff)
parentad7f98335bfac9af58c74056444229377304cd04 (diff)
downloadvyos-1x-bf4b0e70fdab43dfbd2802bee960f5e295347119.tar.gz
vyos-1x-bf4b0e70fdab43dfbd2802bee960f5e295347119.zip
Merge branch 'current' of github.com:vyos/vyos-1x into current
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/host_name.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/host_name.py b/src/conf_mode/host_name.py
index 11612637c..3b3958f7f 100755
--- a/src/conf_mode/host_name.py
+++ b/src/conf_mode/host_name.py
@@ -98,7 +98,7 @@ def generate(config):
def apply(config):
"""Apply configuration"""
- os.system("hostnamectl set-hostname {0}".format(config["fqdn"]))
+ os.system("hostnamectl set-hostname --static {0}".format(config["fqdn"]))
# restart services that use the hostname
os.system("systemctl restart rsyslog.service")