mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-04-22 08:18:27 +02:00
Allow for automatic deletion of old files
This commit is contained in:
@@ -5,6 +5,7 @@ This file contains a log of major changes in dehydrated
|
|||||||
## Added
|
## Added
|
||||||
- Implemented support for certificate profile selection
|
- Implemented support for certificate profile selection
|
||||||
- Added a configuration parameter to allow for timeouts during order processing (`ORDER_TIMEOUT`, defaults to 0 = no timeout)
|
- Added a configuration parameter to allow for timeouts during order processing (`ORDER_TIMEOUT`, defaults to 0 = no timeout)
|
||||||
|
- Allowed for automatic deletion of old files (`AUTO_CLEANUP_DELETE`, disabled by default)
|
||||||
|
|
||||||
## Changed
|
## Changed
|
||||||
- Renew certificates with 32 days remaining (instead of 30) to avoid issues with monthly cronjobs (`RENEW_DAYS=32`)
|
- Renew certificates with 32 days remaining (instead of 30) to avoid issues with monthly cronjobs (`RENEW_DAYS=32`)
|
||||||
|
|||||||
@@ -395,6 +395,7 @@ load_config() {
|
|||||||
IP_VERSION=
|
IP_VERSION=
|
||||||
CHAINCACHE=
|
CHAINCACHE=
|
||||||
AUTO_CLEANUP="no"
|
AUTO_CLEANUP="no"
|
||||||
|
AUTO_CLEANUP_DELETE="no"
|
||||||
DEHYDRATED_USER=
|
DEHYDRATED_USER=
|
||||||
DEHYDRATED_GROUP=
|
DEHYDRATED_GROUP=
|
||||||
API="auto"
|
API="auto"
|
||||||
@@ -1966,8 +1967,8 @@ command_sign_domains() {
|
|||||||
|
|
||||||
[[ -n "${HOOK}" ]] && ("${HOOK}" "exit_hook" || echo 'exit_hook returned with non-zero exit code!' >&2)
|
[[ -n "${HOOK}" ]] && ("${HOOK}" "exit_hook" || echo 'exit_hook returned with non-zero exit code!' >&2)
|
||||||
if [[ "${AUTO_CLEANUP}" == "yes" ]]; then
|
if [[ "${AUTO_CLEANUP}" == "yes" ]]; then
|
||||||
echo "+ Running automatic cleanup"
|
echo " + Running automatic cleanup"
|
||||||
command_cleanup noinit
|
PARAM_CLEANUPDELETE="${AUTO_CLEANUP_DELETE:-no}" command_cleanup noinit | _sed 's/^/ + /g'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit "${exit_with_errorcode}"
|
exit "${exit_with_errorcode}"
|
||||||
|
|||||||
@@ -125,6 +125,9 @@
|
|||||||
# Automatic cleanup (default: no)
|
# Automatic cleanup (default: no)
|
||||||
#AUTO_CLEANUP="no"
|
#AUTO_CLEANUP="no"
|
||||||
|
|
||||||
|
# Delete files during automatic cleanup instead of moving to archive (default: no)
|
||||||
|
#AUTO_CLEANUP_DELETE="no"
|
||||||
|
|
||||||
# ACME API version (default: auto)
|
# ACME API version (default: auto)
|
||||||
#API=auto
|
#API=auto
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user