From 2c29a17e1268f18cb2637236d39d32c49712c6fc Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Tue, 11 Feb 2025 15:59:18 +0100 Subject: [PATCH] check_psqlserver: add iml default help header --- check_file_age | 4 ++-- check_psqlserver | 9 ++------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/check_file_age b/check_file_age index 6fadc6c..63cc4b4 100755 --- a/check_file_age +++ b/check_file_age @@ -62,10 +62,10 @@ PARAMETERS: -c, --critical VALUE critical level in days (default: $iLimitCritical) - -w. --warning VALUE + -w, --warning VALUE warning level in days (default: $iLimitWarning) - -f --filter FILTER + -f, --filter FILTER filter for filenames (default: ${filter_files} EXAMPLE: diff --git a/check_psqlserver b/check_psqlserver index 4e1afb4..47c0e7f 100755 --- a/check_psqlserver +++ b/check_psqlserver @@ -21,6 +21,7 @@ # 2023-06-16 v0.7 <axel.hahn@unibe.ch> update help text # 2023-08-30 v0.8 <axel.hahn@unibe.ch> reverse return code in ph.hasParamoption to unix like return codes: 0=true; <>0 = false # 2023-09-18 v0.9 <axel.hahn@unibe.ch> prevent broken pipe message in journallog +# 2025-02-11 v1.0 <axel.hahn@unibe.ch> add default banner for IML checks # ====================================================================== @@ -111,13 +112,7 @@ EOF function _usage(){ local _self=$( basename $0 ) cat <<EOH -______________________________________________________________________ - -${self_APPNAME} :: v${self_APPVERSION} - -(c) Institute for Medical Education - University of Bern -Licence: GNU GPL 3 -______________________________________________________________________ +$( ph.showImlHelpHeader ) USAGE: $_self [OPTIONS] -m METHOD -- GitLab