From 927f3abdc469775f666e5778edfa9693663b4871 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Wed, 4 Jun 2025 11:59:55 +0100 Subject: lfacme-renew: add -f option --- lfacme-renew.8.in | 4 +++- lfacme-renew.sh.in | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lfacme-renew.8.in b/lfacme-renew.8.in index 66d9f3d..6e4ebd9 100644 --- a/lfacme-renew.8.in +++ b/lfacme-renew.8.in @@ -7,7 +7,7 @@ .Nd issue or renew ACME certificates .Sh SYNOPSIS .Nm -.Op Fl v +.Op Fl fv .Op Fl c Ar confdir .Sh DESCRIPTION The @@ -31,6 +31,8 @@ Use .Ar confdir as the configuration directory instead of the default .Pa __CONFDIR__ . +.It Fl f +Force renewal of certificates, even if they're not going to expire soon. .It Fl v Produce more output when running. This also passes the diff --git a/lfacme-renew.sh.in b/lfacme-renew.sh.in index 5b471c7..34d2c01 100644 --- a/lfacme-renew.sh.in +++ b/lfacme-renew.sh.in @@ -2,7 +2,7 @@ # This source code is released into the public domain. # Parse command-line arguments. -args=$(getopt c:v $*) +args=$(getopt c:fv $*) if [ $? -ne 0 ]; then exit 1 fi @@ -16,6 +16,9 @@ while :; do -c) _CONFDIR="$2" shift; shift;; + -f) + _uacme_flags="$_uacme_flags -f" + shift;; -v) LFACME_VERBOSE=1 shift;; -- cgit v1.2.3