fix: checkmk_agent module renamed, main program reordering, conf_disks fixed, few typos

This commit is contained in:
levasseur
2021-06-23 17:34:17 +02:00
parent e1321111d9
commit 150f4c96c2
10 changed files with 76 additions and 60 deletions

View File

@@ -20,8 +20,8 @@ function terminate()
prnt E "$1 reçu, sortie immédiate."
die 128 --force
}
trap terminate 'Ctrl + C' SIGINT
trap terminate 'SIGTERM' SIGTERM
trap "terminate 'Ctrl + C'" SIGINT
trap "terminate 'SIGTERM'" SIGTERM
function error()
{
@@ -49,7 +49,7 @@ function error()
die $error_code
}
# Trigger error function on error
trap error ${LINENO} ERR
trap "error ${LINENO}" ERR
# Print a backtrace
function backtrace