preliminary support for error management
This commit is contained in:
11
init.sh
11
init.sh
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user