From 5a64ad46171746033ee1eb877eb58c338ffd9c28 Mon Sep 17 00:00:00 2001 From: srvrco Date: Mon, 30 May 2016 19:51:22 +0100 Subject: [PATCH] updating readme to reflect added --upgrade option --- README | 43 ++++++++++++++++++++----------------------- checkssl | 2 +- 2 files changed, 21 insertions(+), 24 deletions(-) diff --git a/README b/README index e80ff5c..fd686d7 100644 --- a/README +++ b/README @@ -26,32 +26,29 @@ will run the renewssl command with the domain name passed as an argument. If t running checkssl with no arguments gives help; -checkssl - checkssl ver. 0.7 - checks ssl certs for a set of domains +checkssl ver. 1.00 +Checks ssl certs for a set of domains - Usage: checkssl [-h|--help] [-d|--debug] [-f|--file filename] [-s|--server stype] [-l|--location directory] [-e|--expires days] [-r:--renew] [domain] +Usage: checkssl [-h|--help] [-d|--debug] [-f|--file filename] [-s|--server stype] [-l|--location directory] + [-e|--expires days] [-r|--renew] [-u|--update] [-u|--upgrade] [-c|--command command] [domain] - Options: - -h, --help Display this help message and exit. - -d, --debug outputs debug information +Options: + -h, --help Display this help message and exit. + -d, --debug Outputs debug information -f, --file filename - Where 'filename' is a file containing a list of domain names + Where 'filename' is a file containing a list of domain names -s, --server server_type - Where 'server_type' is the server type (cpanel, ISPconfig, apache2 ...) + Where 'server_type' is the server type (cpanel, ISPconfig, apache2 ...) -l, --location directory - Where 'directory' is where your lets encrypt live directory is - (typically /etc/letsencrypt/live/) + Where 'directory' is where your lets encrypt live directory is + (typically /etc/letsencrypt/live/) -e, --expires days - Where 'days' is the number of days to alert if cert expires in that time period - -r, --renew this just lists domain names that need to be renewed. This list could be used by an auto renew script, or to email you. - -c, --command run-command - Where 'run-command' is a command to be run if certificates are due for renewal. - -V0.1 initial commit by SRVRCO -v0.2 modification by MrSleeps -v0.3 corrected issue in grep affecting performance on some servers -v0.4 correct typo and added -e and -r arguments -v0.5 added --command option -v0.6 added ability to add domain name on command line -v0.7 Updated after using shellcheck to maintain a better coding standard + Where 'days' is the number of days to alert if cert expires in that time period + -r, --renew this just lists domain names that need to be renewed. + This list could be used by an auto renew script, or to email you. + -u, --upgrade Upgrade checkssl if a more recent version is available + -c, --command run_command + Where 'run_command' is a command which will be run (with domain name passed) + for any certs due for renewal + + A domain name can also be specified on the command line diff --git a/checkssl b/checkssl index 692296d..d91cb9a 100755 --- a/checkssl +++ b/checkssl @@ -27,7 +27,7 @@ # 2016-01-30 Updated after using shellcheck to maintain a better coding standard (0.7) # 2016-01-31 Added check at start to ensure all required applications are installed (0.8) # 2016-05-30 Added auto-upgrade option on the command line (1.00) -# 2016-05-30 Correcting typo +# 2016-05-30 Correcting typo (1.01) # --------------------------------------------------------------------------- PROGNAME=${0##*/}