Commit f1090082 authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

fix re-used variable in lets_encrypt

parent 842b38f5
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -60,9 +60,9 @@ define su_apache::cert::lets_encrypt (
  $onlyif_cmd_so = "sh -c \"test ! -f ${le_cert} || test ! -f ${le_key}\""

  # This is the command that does the linking.
  $cmd1        = "ln -s ${so_key} ${main_key}"
  $cmd2        = "ln -s ${so_cert} ${main_cert}"
  $link_cmd_so = "${cmd1} && ${cmd2}"
  $cmd1_so     = "ln -s ${so_key} ${main_key}"
  $cmd2_so     = "ln -s ${so_cert} ${main_cert}"
  $link_cmd_so = "${cmd1_so} && ${cmd2_so}"

  exec { "link-${name}-to-so":
    path    => '/usr/bin:/usr/sbin',
@@ -79,9 +79,9 @@ define su_apache::cert::lets_encrypt (
  $onlyif_cmd_le = "sh -c \"test -f ${le_cert} && test -f ${le_key}\""

  # This is the command that does the linking.
  $cmd1        = "ln -s ${le_key} ${main_key}"
  $cmd2        = "ln -s ${le_cert} ${main_cert}"
  $link_cmd_le = "${cmd1} && ${cmd2}"
  $cmd1_le     = "ln -s ${le_key} ${main_key}"
  $cmd2_le     = "ln -s ${le_cert} ${main_cert}"
  $link_cmd_le = "${cmd1_le} && ${cmd2_le}"

  exec { "link-${name}-to-le":
    path    => '/usr/bin:/usr/sbin',