Modification : $vm_ -> $local_ .
[lhc/ateliers.git] / etc / sv / sshd / local.sh
index d3d6933..2abe7d1 100644 (file)
@@ -1,6 +1,6 @@
 "$tool"/local/apt-get-install openssh-server
 "$tool"/local/insserv-remove      ssh
-ssh-keygen -F "$vm_fqdn" -f "$tool"/etc/openssh/known_hosts |
+ssh-keygen -F "$local_fqdn" -f "$tool"/etc/openssh/known_hosts |
 ( while IFS= read -r line
  do case $line in (*" RSA") return 0; break;; esac
  done; return 1 ) ||
@@ -12,7 +12,7 @@ sudo rm -f \
  /etc/ssh/ssh_host_ecdsa_key.pub
  # NOTE: clefs générées par Debian
 m4 \
- --define=VM_IPV4=$vm_ipv4 \
+ --define=LOCAL_IPV4=$local_ipv4 \
  <"$tool"/etc/ssh/sshd_config.m4 |
 sudo install -m 640 -o root -g root /dev/stdin \
  /etc/ssh/sshd_config