Permalink
Browse files

Fix mail command to actually send correct content

  • Loading branch information...
1 parent af8fb6c commit c9a4792c397947ea5c79e20d9a045ef0d5712891 @StephenBrown2 committed Feb 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 manifests/init.pp
View
@@ -88,7 +88,7 @@
notify { "$title user password set":
message => "Password for user $title on $::certname has been set to: $password",
}
- exec { "mail ":
+ exec { "echo 'Password for user $title on $::certname has been set to: $password' | mail -s 'Password for user $title on $::certname has been set' $email":
path => "/bin:/usr/bin",
refreshonly => true,
subscribe => User[$username]

0 comments on commit c9a4792

Please sign in to comment.