mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 14:20:30 +01: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
|
||||
- Implemented support for certificate profile selection
|
||||
- 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
|
||||
- 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=
|
||||
CHAINCACHE=
|
||||
AUTO_CLEANUP="no"
|
||||
AUTO_CLEANUP_DELETE="no"
|
||||
DEHYDRATED_USER=
|
||||
DEHYDRATED_GROUP=
|
||||
API="auto"
|
||||
@@ -1966,8 +1967,8 @@ command_sign_domains() {
|
||||
|
||||
[[ -n "${HOOK}" ]] && ("${HOOK}" "exit_hook" || echo 'exit_hook returned with non-zero exit code!' >&2)
|
||||
if [[ "${AUTO_CLEANUP}" == "yes" ]]; then
|
||||
echo "+ Running automatic cleanup"
|
||||
command_cleanup noinit
|
||||
echo " + Running automatic cleanup"
|
||||
PARAM_CLEANUPDELETE="${AUTO_CLEANUP_DELETE:-no}" command_cleanup noinit | _sed 's/^/ + /g'
|
||||
fi
|
||||
|
||||
exit "${exit_with_errorcode}"
|
||||
|
||||
@@ -125,6 +125,9 @@
|
||||
# Automatic cleanup (default: 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)
|
||||
#API=auto
|
||||
|
||||
|
||||
Reference in New Issue
Block a user