<div dir="ltr"><div dir="ltr"><div dir="ltr">I am sending a compressed file with errors via mail in case some appear (but nothing that is sent in case of successful deployment) with a modified version of "<a href="http://savelog.LAST.sh">savelog.LAST.sh</a>" hook.<br>Find attached.<br><div><br>As gmail allows to sent via smtps to other gmail addresses I use the following variables for configuration:</div><div><br><div><span style="white-space:pre">  </span>FAI_INFOMAIL_SENDERR='true'</div><div><span style="white-space:pre">   </span>FAI_INFOMAIL_SMTPURL='smtps://<GMAILUSER>:<GMAILPASS>@<a href="http://smtp.gmail.com">smtp.gmail.com</a>' </div><div><span style="white-space:pre"> </span>FAI_INFOMAIL_TOADDRESS="<GMAILUSER>@<a href="http://gmail.com">gmail.com</a>"</div></div><div><br>Obviously you need to have "mutt" application installed and you might need to adjust the following variables to match your needed patterns..</div><div><div>[ -z "${FAI_ERR_PATTERNS}" ] && FAI_ERR_PATTERNS="X_X-X_XX"</div><div>[ -z "${FAI_ERR_WARN}" ] && FAI_ERR_WARN="X_X-X_XX"</div><div>[ -z "${FAI_ERR_IGNORE}" ] && FAI_ERR_IGNORE="X_X-X_XX"</div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Do., 24. März 2022 um 14:46 Uhr schrieb Romain Pelissier <<a href="mailto:romain.pelissier@gmail.com">romain.pelissier@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hello everybody,</div><div class="gmail_default" style="font-family:verdana,sans-serif">Do you know a way to execute a script on the server (FAI) side after a successful or unsuccessful client's deployment?</div><div class="gmail_default" style="font-family:verdana,sans-serif">In case of an unsuccessful attempt, is there a way to get some logs and attach them to an email for example?</div><div class="gmail_default" style="font-family:verdana,sans-serif">Thanks for any useful info you can provide about this :)</div><div class="gmail_default" style="font-family:verdana,sans-serif">Romain</div></div>
</blockquote></div>