preliminary support for error management

This commit is contained in:
fatalerrors
2021-06-17 18:28:03 +02:00
parent bf694f7c57
commit 71a283e0f5
2 changed files with 131 additions and 1 deletions

11
init.sh
View File

@@ -2,6 +2,15 @@
# Init : initialise une machine et la met en conformité
# Copyright (c) 2021 Geoffray Levasseur <geoffray.levasseur@obs-mip.fr>
# trace ERR through pipes
set -o pipefail
# trace ERR through 'time command' and other functions
set -o errtrace
# set -e : exit the script if any statement returns a non-true return value
set -o errexit
export VERSION="0.95.1"
# Stocke le chemin du script
@@ -120,5 +129,5 @@ install_mk-agent
conf_syslog
conf_mail
echo "That's all folks !"
prnt I "That's all folks !"
echo "Après vérification des logs, il est recommandé de redémarrer la machine..."