<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.lesitadom.fr/index.php?action=history&amp;feed=atom&amp;title=Mises_%C3%A0_jour_automatiques</id>
	<title>Mises à jour automatiques - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lesitadom.fr/index.php?action=history&amp;feed=atom&amp;title=Mises_%C3%A0_jour_automatiques"/>
	<link rel="alternate" type="text/html" href="https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;action=history"/>
	<updated>2026-07-01T06:01:49Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1642&amp;oldid=prev</id>
		<title>Domi : /* Automatisation */</title>
		<link rel="alternate" type="text/html" href="https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1642&amp;oldid=prev"/>
		<updated>2025-05-15T17:30:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Automatisation&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 15 mai 2025 à 17:30&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l214&quot;&gt;Ligne 214 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 214 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::*&amp;#039;&amp;#039;Pour que la redirection de mails fonctionne, il faut que l&amp;#039;adresse de destination finale soit différente de l&amp;#039;adresse utilisée pour l&amp;#039;identification pour l&amp;#039;envoi des mails.&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::*&amp;#039;&amp;#039;Pour que la redirection de mails fonctionne, il faut que l&amp;#039;adresse de destination finale soit différente de l&amp;#039;adresse utilisée pour l&amp;#039;identification pour l&amp;#039;envoi des mails.&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=&lt;/del&gt;=Automatisation&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=&lt;/del&gt;=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Automatisation=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;On automatise l&amp;#039;exécution (dimache à 2h du matin) :&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;On automatise l&amp;#039;exécution (dimache à 2h du matin) :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   crontab -e&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   crontab -e&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   0 2 * * 7 /root/scripts/lxc_auto_update.sh&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   0 2 * * 7 /root/scripts/lxc_auto_update.sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Domi</name></author>
	</entry>
	<entry>
		<id>https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1641&amp;oldid=prev</id>
		<title>Domi : /* Configuration de ssmtp */</title>
		<link rel="alternate" type="text/html" href="https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1641&amp;oldid=prev"/>
		<updated>2025-05-15T17:29:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Configuration de ssmtp&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 15 mai 2025 à 17:29&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l214&quot;&gt;Ligne 214 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 214 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::*&amp;#039;&amp;#039;Pour que la redirection de mails fonctionne, il faut que l&amp;#039;adresse de destination finale soit différente de l&amp;#039;adresse utilisée pour l&amp;#039;identification pour l&amp;#039;envoi des mails.&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::*&amp;#039;&amp;#039;Pour que la redirection de mails fonctionne, il faut que l&amp;#039;adresse de destination finale soit différente de l&amp;#039;adresse utilisée pour l&amp;#039;identification pour l&amp;#039;envoi des mails.&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Automatisation==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;On automatise l&amp;#039;exécution (dimache à 2h du matin) :&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;On automatise l&amp;#039;exécution (dimache à 2h du matin) :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   crontab -e&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   crontab -e&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   0 2 * * 7 /root/scripts/lxc_auto_update.sh&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   0 2 * * 7 /root/scripts/lxc_auto_update.sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Domi</name></author>
	</entry>
	<entry>
		<id>https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1640&amp;oldid=prev</id>
		<title>Domi : /* Script de mise à jour des conteneurs */</title>
		<link rel="alternate" type="text/html" href="https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1640&amp;oldid=prev"/>
		<updated>2025-05-15T17:28:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Script de mise à jour des conteneurs&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 15 mai 2025 à 17:28&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Ligne 1 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Script de mise à jour des conteneurs=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Script de mise à jour des conteneurs=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Au niveau du système hôte&lt;/del&gt;, on &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ajoute &lt;/del&gt;le &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;script &lt;/del&gt;:  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Afin d&#039;automatiser la mise à jour des conteneurs&lt;/ins&gt;, on &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;crée un script qui va&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:*Mettre à jour les conteneurs alpine en fonctionnement&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:*Créer un fichier de log&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:*Corriger &lt;/ins&gt;le &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;fichier de log pour ne garder la trace que des deux dernières mises à jour&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:*Envoyer un mail d&#039;alerte en cas d&#039;erreur&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*Redémarrer les conteneurs en prenant soin de démarrer le conteneur &#039;&#039;&#039;proxy&#039;&#039;&#039; en dernier&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/root/scripts/&amp;#039;&amp;#039;&amp;#039;lxc_auto_update.sh&amp;#039;&amp;#039;&amp;#039; :&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/root/scripts/&amp;#039;&amp;#039;&amp;#039;lxc_auto_update.sh&amp;#039;&amp;#039;&amp;#039; :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Domi</name></author>
	</entry>
	<entry>
		<id>https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1639&amp;oldid=prev</id>
		<title>Domi : /* Script de mise à jour des conteneurs */</title>
		<link rel="alternate" type="text/html" href="https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1639&amp;oldid=prev"/>
		<updated>2025-05-15T16:56:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Script de mise à jour des conteneurs&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 15 mai 2025 à 16:56&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l163&quot;&gt;Ligne 163 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 163 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Envoi des E-mails=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Envoi des E-mails=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Domi</name></author>
	</entry>
	<entry>
		<id>https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1638&amp;oldid=prev</id>
		<title>Domi : /* Script de mise à jour des conteneurs */</title>
		<link rel="alternate" type="text/html" href="https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1638&amp;oldid=prev"/>
		<updated>2025-05-15T16:55:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Script de mise à jour des conteneurs&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 15 mai 2025 à 16:55&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l152&quot;&gt;Ligne 152 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 152 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fi&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fi&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   #&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/nowiki&amp;gt; &lt;/del&gt;Définir l&#039;adresse e-mail pour les notifications&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   # Définir l&#039;adresse e-mail pour les notifications&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  EMAIL_DESTINATAIRE=&amp;quot;toto@mail.com&amp;quot; # Remplace par ton adresse e-mail&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  EMAIL_DESTINATAIRE=&amp;quot;toto@mail.com&amp;quot; # Remplace par ton adresse e-mail&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l163&quot;&gt;Ligne 163 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 163 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Envoi des E-mails=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Envoi des E-mails=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Installation des logiciels de gestion des mails==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Installation des logiciels de gestion des mails==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Domi</name></author>
	</entry>
	<entry>
		<id>https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1637&amp;oldid=prev</id>
		<title>Domi : /* Script de sauvegarde */</title>
		<link rel="alternate" type="text/html" href="https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1637&amp;oldid=prev"/>
		<updated>2025-05-15T16:52:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Script de sauvegarde&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 15 mai 2025 à 16:52&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Ligne 1 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Script de &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sauvegarde&lt;/del&gt;=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Script de &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mise à jour des conteneurs&lt;/ins&gt;=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Au niveau du système hôte, on ajoute le script :  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Au niveau du système hôte, on ajoute le script :  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Domi</name></author>
	</entry>
	<entry>
		<id>https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1636&amp;oldid=prev</id>
		<title>Domi : /* script de sauvegarde */</title>
		<link rel="alternate" type="text/html" href="https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1636&amp;oldid=prev"/>
		<updated>2025-05-15T16:51:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;script de sauvegarde&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 15 mai 2025 à 16:51&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Ligne 1 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;script &lt;/del&gt;de sauvegarde=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Script &lt;/ins&gt;de sauvegarde=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Au niveau du système hôte, on ajoute le script :  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Au niveau du système hôte, on ajoute le script :  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Domi</name></author>
	</entry>
	<entry>
		<id>https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1635&amp;oldid=prev</id>
		<title>Domi : Page créée avec « =script de sauvegarde= Au niveau du système hôte, on ajoute le script :  &lt;div class=&quot;toccolours mw-collapsible mw-collapsed&quot;&gt; /root/scripts/&#039;&#039;&#039;lxc_auto_update.sh&#039;&#039;&#039; : &lt;div class=&quot;mw-collapsible-content&quot;&gt;  #!/bin/bash    LOG_FILE=&quot;/var/log/lxc_update.log&quot;  MAX_RUNS_TO_KEEP=2  RUN_START_MARKER=&quot;--- Début de l&#039;exécution du script ---&quot;  RUN_END_MARKER=&quot;--- Fin de l&#039;exécution du script ---&quot;  PROXY_CONTAINER=&quot;proxy&quot;  WEB_CONTAINERS=(&quot;wp&quot; &quot;pmb&quot; &quot;wiki&quot; &quot;tables&quot;) # L... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.lesitadom.fr/index.php?title=Mises_%C3%A0_jour_automatiques&amp;diff=1635&amp;oldid=prev"/>
		<updated>2025-05-15T16:51:35Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « =script de sauvegarde= Au niveau du système hôte, on ajoute le script :  &amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt; /root/scripts/&amp;#039;&amp;#039;&amp;#039;lxc_auto_update.sh&amp;#039;&amp;#039;&amp;#039; : &amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;  #!/bin/bash    LOG_FILE=&amp;quot;/var/log/lxc_update.log&amp;quot;  MAX_RUNS_TO_KEEP=2  RUN_START_MARKER=&amp;quot;--- Début de l&amp;#039;exécution du script ---&amp;quot;  RUN_END_MARKER=&amp;quot;--- Fin de l&amp;#039;exécution du script ---&amp;quot;  PROXY_CONTAINER=&amp;quot;proxy&amp;quot;  WEB_CONTAINERS=(&amp;quot;wp&amp;quot; &amp;quot;pmb&amp;quot; &amp;quot;wiki&amp;quot; &amp;quot;tables&amp;quot;) # L... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=script de sauvegarde=&lt;br /&gt;
Au niveau du système hôte, on ajoute le script : &lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
/root/scripts/&amp;#039;&amp;#039;&amp;#039;lxc_auto_update.sh&amp;#039;&amp;#039;&amp;#039; :&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 LOG_FILE=&amp;quot;/var/log/lxc_update.log&amp;quot;&lt;br /&gt;
 MAX_RUNS_TO_KEEP=2&lt;br /&gt;
 RUN_START_MARKER=&amp;quot;--- Début de l&amp;#039;exécution du script ---&amp;quot;&lt;br /&gt;
 RUN_END_MARKER=&amp;quot;--- Fin de l&amp;#039;exécution du script ---&amp;quot;&lt;br /&gt;
 PROXY_CONTAINER=&amp;quot;proxy&amp;quot;&lt;br /&gt;
 WEB_CONTAINERS=(&amp;quot;wp&amp;quot; &amp;quot;pmb&amp;quot; &amp;quot;wiki&amp;quot; &amp;quot;tables&amp;quot;) # Liste de tous les conteneurs web&lt;br /&gt;
 WEB_SERVICE_NAME=&amp;quot;apache2&amp;quot; # Nom du service web à vérifier (adapter si nécessaire)&lt;br /&gt;
 SLEEP_AFTER_RESTART=10 # Délai après le redémarrage des conteneurs web&lt;br /&gt;
 &lt;br /&gt;
 bavarder() {&lt;br /&gt;
   local message=&amp;quot;$1&amp;quot;&lt;br /&gt;
   echo &amp;quot;$(date &amp;#039;+%Y-%m-%d %H:%M:%S&amp;#039;) - $message&amp;quot; &amp;gt;&amp;gt; &amp;quot;$LOG_FILE&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 # Ajouter un marqueur de début d&amp;#039;exécution&lt;br /&gt;
 bavarder &amp;quot;$RUN_START_MARKER&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # Récupérer la liste des noms de conteneurs Alpine&lt;br /&gt;
 containers=$(lxc list --format csv | tail -n +2 | cut -d&amp;#039;,&amp;#039; -f1)&lt;br /&gt;
 bavarder &amp;quot;Liste des conteneurs récupérée : &amp;#039;$containers&amp;#039;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # Séparer les noms de conteneurs en un tableau&lt;br /&gt;
 IFS=$&amp;#039;\n&amp;#039; read -r -d &amp;lt;nowiki&amp;gt;&amp;#039;&amp;#039;&amp;lt;/nowiki&amp;gt; -a container_array &amp;lt;&amp;lt;&amp;lt; &amp;quot;$containers&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # Boucle pour lancer les mises à jour&lt;br /&gt;
 {&lt;br /&gt;
   for container in &amp;quot;${container_array[@]}&amp;quot;; do&lt;br /&gt;
     bavarder &amp;quot;--- Début du traitement du conteneur : &amp;#039;$container&amp;#039; ---&amp;quot;&lt;br /&gt;
     config=$(lxc config show &amp;quot;$container&amp;quot;)&lt;br /&gt;
     if echo &amp;quot;$config&amp;quot; | grep -iq &amp;quot;alpine&amp;quot;; then&lt;br /&gt;
       bavarder &amp;quot;Le conteneur &amp;#039;$container&amp;#039; semble être basé sur Alpine.&amp;quot;&lt;br /&gt;
       is_running=$(lxc list --format csv | grep &amp;quot;^${container},&amp;quot; | grep &amp;quot;,RUNNING,&amp;quot;)&lt;br /&gt;
       if [ -n &amp;quot;$is_running&amp;quot; ]; then&lt;br /&gt;
         bavarder &amp;quot;Le conteneur &amp;#039;$container&amp;#039; est en cours d&amp;#039;exécution, lancement de la mise à jour...&amp;quot;&lt;br /&gt;
         lxc exec &amp;quot;$container&amp;quot; -- sh -c &amp;quot;apk update &amp;amp;&amp;amp; apk upgrade --available&amp;quot;&lt;br /&gt;
         result=$?&lt;br /&gt;
         if [ &amp;quot;$result&amp;quot; -ne 0 ]; then&lt;br /&gt;
           bavarder &amp;quot;Erreur lors de la mise à jour de &amp;#039;$container&amp;#039;.&amp;quot;&lt;br /&gt;
         fi&lt;br /&gt;
       else&lt;br /&gt;
         bavarder &amp;quot;Le conteneur &amp;#039;$container&amp;#039; n&amp;#039;est pas en cours d&amp;#039;exécution, mise à jour ignorée.&amp;quot;&lt;br /&gt;
       fi&lt;br /&gt;
     else&lt;br /&gt;
       bavarder &amp;quot;Le conteneur &amp;#039;$container&amp;#039; ne semble pas être basé sur Alpine, mise à jour ignorée.&amp;quot;&lt;br /&gt;
     fi&lt;br /&gt;
     bavarder &amp;quot;--- Fin du traitement du conteneur : &amp;#039;$container&amp;#039; ---&amp;quot;&lt;br /&gt;
   done&lt;br /&gt;
 } &amp;gt;&amp;gt; &amp;quot;$LOG_FILE&amp;quot; 2&amp;gt;&amp;amp;1&lt;br /&gt;
 &lt;br /&gt;
 bavarder &amp;quot;Fin de la tentative de mise à jour des conteneurs.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # --- Début du redémarrage des conteneurs Alpine (sauf le proxy) ---&lt;br /&gt;
 bavarder &amp;quot;--- Début du redémarrage des conteneurs Alpine (sauf $PROXY_CONTAINER) ---&amp;quot;&lt;br /&gt;
 for container in &amp;quot;${container_array[@]}&amp;quot;; do&lt;br /&gt;
   if [ &amp;quot;$container&amp;quot; != &amp;quot;$PROXY_CONTAINER&amp;quot; ]; then&lt;br /&gt;
     config=$(lxc config show &amp;quot;$container&amp;quot;)&lt;br /&gt;
     if echo &amp;quot;$config&amp;quot; | grep -iq &amp;quot;alpine&amp;quot;; then&lt;br /&gt;
       is_running=$(lxc list --format csv | grep &amp;quot;^${container},&amp;quot; | grep &amp;quot;,RUNNING,&amp;quot;)&lt;br /&gt;
       if [ -n &amp;quot;$is_running&amp;quot; ]; then&lt;br /&gt;
         bavarder &amp;quot;Redémarrage du conteneur &amp;#039;$container&amp;#039;...&amp;quot;&lt;br /&gt;
         lxc restart &amp;quot;$container&amp;quot;&lt;br /&gt;
         sleep &amp;quot;$SLEEP_AFTER_RESTART&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
         # Vérifier l&amp;#039;état du service web pour les conteneurs web&lt;br /&gt;
         is_web_container=0&lt;br /&gt;
         for web_container in &amp;quot;${WEB_CONTAINERS[@]}&amp;quot;; do&lt;br /&gt;
           if [ &amp;quot;$container&amp;quot; == &amp;quot;$web_container&amp;quot; ]; then&lt;br /&gt;
             is_web_container=1&lt;br /&gt;
             break&lt;br /&gt;
           fi&lt;br /&gt;
         done&lt;br /&gt;
 	if [ &amp;quot;$is_web_container&amp;quot; -eq 1 ]; then&lt;br /&gt;
           service_status=$(lxc exec &amp;quot;$container&amp;quot; -- rc-service &amp;quot;$WEB_SERVICE_NAME&amp;quot; status 2&amp;gt;&amp;amp;1)&lt;br /&gt;
           if ! echo &amp;quot;$service_status&amp;quot; | grep -q &amp;quot;started&amp;quot;; then&lt;br /&gt;
             bavarder &amp;quot;$WEB_SERVICE_NAME ne semble pas en cours d&amp;#039;exécution dans &amp;#039;$container&amp;#039;, tentative de démarrage...&amp;quot;&lt;br /&gt;
             lxc exec &amp;quot;$container&amp;quot; -- rc-service &amp;quot;$WEB_SERVICE_NAME&amp;quot; start&lt;br /&gt;
             sleep 5&lt;br /&gt;
             service_status_after_start=$(lxc exec &amp;quot;$container&amp;quot; -- rc-service &amp;quot;$WEB_SERVICE_NAME&amp;quot; status 2&amp;gt;&amp;amp;1)&lt;br /&gt;
             if ! echo &amp;quot;$service_status_after_start&amp;quot; | grep -q &amp;quot;started&amp;quot;; then&lt;br /&gt;
               bavarder &amp;quot;Échec du démarrage de $WEB_SERVICE_NAME dans &amp;#039;$container&amp;#039;.&amp;quot;&lt;br /&gt;
             else&lt;br /&gt;
               bavarder &amp;quot;$WEB_SERVICE_NAME démarré avec succès dans &amp;#039;$container&amp;#039;.&amp;quot;&lt;br /&gt;
             fi&lt;br /&gt;
           else&lt;br /&gt;
             bavarder &amp;quot;$WEB_SERVICE_NAME semble être en cours d&amp;#039;exécution dans &amp;#039;$container&amp;#039;.&amp;quot;&lt;br /&gt;
           fi&lt;br /&gt;
         fi&lt;br /&gt;
       fi&lt;br /&gt;
     fi&lt;br /&gt;
   fi&lt;br /&gt;
 done&lt;br /&gt;
 bavarder &amp;quot;--- Fin du redémarrage des conteneurs Alpine (sauf $PROXY_CONTAINER) ---&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # --- Redémarrage du conteneur proxy en dernier ---&lt;br /&gt;
 bavarder &amp;quot;--- Début du redémarrage du conteneur proxy ($PROXY_CONTAINER) ---&amp;quot;&lt;br /&gt;
 is_proxy_running=$(lxc list --format csv | grep &amp;quot;^${PROXY_CONTAINER},&amp;quot; | grep &amp;quot;,RUNNING,&amp;quot;)&lt;br /&gt;
 if [ -n &amp;quot;$is_proxy_running&amp;quot; ]; then&lt;br /&gt;
   bavarder &amp;quot;Redémarrage du conteneur proxy &amp;#039;$PROXY_CONTAINER&amp;#039;...&amp;quot;&lt;br /&gt;
   lxc restart &amp;quot;$PROXY_CONTAINER&amp;quot;&lt;br /&gt;
   result=$?&lt;br /&gt;
   if [ &amp;quot;$result&amp;quot; -ne 0 ]; then&lt;br /&gt;
     bavarder &amp;quot;Erreur lors du redémarrage du conteneur proxy &amp;#039;$PROXY_CONTAINER&amp;#039;.&amp;quot;&lt;br /&gt;
   fi&lt;br /&gt;
 else&lt;br /&gt;
   bavarder &amp;quot;Le conteneur proxy &amp;#039;$PROXY_CONTAINER&amp;#039; n&amp;#039;est pas en cours d&amp;#039;exécution, redémarrage ignoré.&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 bavarder &amp;quot;--- Fin du redémarrage du conteneur proxy ($PROXY_CONTAINER) ---&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # Ajouter un marqueur de fin d&amp;#039;exécution&lt;br /&gt;
 bavarder &amp;quot;$RUN_END_MARKER&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # --- Gestion de la rotation des logs ---&lt;br /&gt;
 if [ -f &amp;quot;$LOG_FILE&amp;quot; ]; then&lt;br /&gt;
   # Récupérer toutes les occurrences du marqueur de début d&amp;#039;exécution&lt;br /&gt;
   start_markers=$(grep -c &amp;quot;^$RUN_START_MARKER&amp;quot; &amp;quot;$LOG_FILE&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
   # Calculer le nombre d&amp;#039;exécutions à supprimer&lt;br /&gt;
   runs_to_remove=$((start_markers - MAX_RUNS_TO_KEEP))&lt;br /&gt;
 &lt;br /&gt;
   if [ &amp;quot;$runs_to_remove&amp;quot; -gt 0 ]; then&lt;br /&gt;
     # Utiliser awk pour ne conserver que les N dernières exécutions&lt;br /&gt;
     awk -v n=&amp;quot;$MAX_RUNS_TO_KEEP&amp;quot; -v start_marker=&amp;quot;$RUN_START_MARKER&amp;quot; -v end_marker=&amp;quot;$RUN_END_MARKER&amp;quot; &amp;#039;&lt;br /&gt;
       BEGIN { count = 0; in_run = 0; }&lt;br /&gt;
       $0 ~ start_marker {&lt;br /&gt;
         count++;&lt;br /&gt;
         if (count &amp;gt; (NR - RSTART) + 1 - (n * (RLENGTH ? 1 : 0))) {&lt;br /&gt;
           in_run = 1;&lt;br /&gt;
         } else {&lt;br /&gt;
           in_run = 0;&lt;br /&gt;
           print;&lt;br /&gt;
         }&lt;br /&gt;
       }&lt;br /&gt;
       $0 ~ end_marker {&lt;br /&gt;
         if (!in_run) {&lt;br /&gt;
           print;&lt;br /&gt;
         }&lt;br /&gt;
       }&lt;br /&gt;
       &amp;lt;nowiki&amp;gt;!($0 ~ start_marker) &amp;amp;&amp;amp; !($0 ~ end_marker) {&lt;br /&gt;
          if (!in_run) {&lt;br /&gt;
            print;&lt;br /&gt;
          }&lt;br /&gt;
        }&lt;br /&gt;
      &amp;#039; &amp;quot;$LOG_FILE&amp;quot; &amp;gt; &amp;quot;$LOG_FILE.tmp&amp;quot; &amp;amp;&amp;amp; mv &amp;quot;$LOG_FILE.tmp&amp;quot; &amp;quot;$LOG_FILE&amp;quot;&lt;br /&gt;
    fi&lt;br /&gt;
  fi&lt;br /&gt;
  &lt;br /&gt;
  #&amp;lt;/nowiki&amp;gt; Définir l&amp;#039;adresse e-mail pour les notifications&lt;br /&gt;
 EMAIL_DESTINATAIRE=&amp;quot;toto@mail.com&amp;quot; # Remplace par ton adresse e-mail&lt;br /&gt;
 &lt;br /&gt;
 # Vérifier s&amp;#039;il y a eu des erreurs et envoyer un e-mail si c&amp;#039;est le cas&lt;br /&gt;
 if grep -q &amp;quot;Erreur&amp;quot; &amp;quot;$LOG_FILE&amp;quot;; then&lt;br /&gt;
   cat &amp;quot;$LOG_FILE&amp;quot; | mail -s &amp;#039;Rapport de mise à jour LXC - Erreurs détectées&amp;#039; &amp;quot;$EMAIL_DESTINATAIRE&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 exit 0&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
=Envoi des E-mails=&lt;br /&gt;
==Installation des logiciels de gestion des mails==&lt;br /&gt;
L&amp;#039;envoi des mails nécessite l&amp;#039;installation de &amp;#039;&amp;#039;&amp;#039;mailutils&amp;#039;&amp;#039;&amp;#039; et &amp;#039;&amp;#039;&amp;#039;ssmtp&amp;#039;&amp;#039;&amp;#039; :&lt;br /&gt;
  apt-get install mailutils ssmtp&lt;br /&gt;
==Configuration de ssmtp==&lt;br /&gt;
  vi /etc/ssmtp/ssmtp.conf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;ssmtp.conf&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
  #&lt;br /&gt;
  # Config file for sSMTP sendmail&lt;br /&gt;
  #&lt;br /&gt;
  # The person who gets all mail for userids &amp;lt; 1000&lt;br /&gt;
  # Make this empty to disable rewriting.&lt;br /&gt;
  root=toto@monmail.fr&lt;br /&gt;
  &lt;br /&gt;
  # The place where the mail goes. The actual machine name is required no &lt;br /&gt;
  # MX records are consulted. Commonly mailhosts are named mail.domain.com&lt;br /&gt;
  mailhub=smtp.gmail.com:587 (pour gmail)&lt;br /&gt;
  &lt;br /&gt;
  # Where will the mail seem to come from?&lt;br /&gt;
  # rewriteDomain=&lt;br /&gt;
 &lt;br /&gt;
  # The full hostname&lt;br /&gt;
  hostname=raspberrypi&lt;br /&gt;
  &lt;br /&gt;
  # Are users allowed to set their own From: address?&lt;br /&gt;
  # YES - Allow the user to specify their own From: address&lt;br /&gt;
  # NO - Use the system generated From: address&lt;br /&gt;
  FromLineOverride=YES&lt;br /&gt;
  UseTLS=YES&lt;br /&gt;
  UseSTARTTLS=YES&lt;br /&gt;
  AuthUser=toto@monfournisseur.com&lt;br /&gt;
  AuthPass=MonMotdePasseDeConnection&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Remarques :&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
::*&amp;#039;&amp;#039;Pour gmail, il faut créer un mot de passe d&amp;#039;application dans les paramètre du compte google et l&amp;#039;utiliser ici.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
::*&amp;#039;&amp;#039;Pour que la redirection de mails fonctionne, il faut que l&amp;#039;adresse de destination finale soit différente de l&amp;#039;adresse utilisée pour l&amp;#039;identification pour l&amp;#039;envoi des mails.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
On automatise l&amp;#039;exécution (dimache à 2h du matin) :&lt;br /&gt;
  crontab -e&lt;br /&gt;
  0 2 * * 7 /root/scripts/lxc_auto_update.sh&lt;/div&gt;</summary>
		<author><name>Domi</name></author>
	</entry>
</feed>