Skip to content
Snippets Groups Projects
Commit 5ddd2f83 authored by Philippe Dpt35's avatar Philippe Dpt35
Browse files

Redirection des erreurs vers un fichier log

parent 5e181bcb
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,14 @@ primtux="01-mini ...@@ -10,6 +10,14 @@ primtux="01-mini
02-super 02-super
03-maxi" 03-maxi"
# Redirection d'erreurs vers un fichier log
fichierlog="/var/log/ptx2-3-vers-4.log"
if ! [ -e "$fichierlog" ]
then > "$fichierlog"
fi
date >> "$fichierlog"
exec 2>>"$fichierlog"
apt-get update && apt-get dist-upgrade apt-get update && apt-get dist-upgrade
# Vérifie l'OS # Vérifie l'OS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment