Parcourir la source

common: Fix hostname command on jessie hosts

Sebastien Badia il y a 8 ans
Parent
commit
f640d703fe
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      manifests/common.pp

+ 1 - 1
manifests/common.pp

@@ -121,7 +121,7 @@ class public::common {
 
   exec {
     'reload hostname':
-      command     => '/bin/sh /etc/init.d/hostname.sh start',
+      command     => "/usr/bin/hostnamectl set-hostname ${::fqdn}",
       user        => root,
       refreshonly => true,
       logoutput   => on_failure;