File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ This file contains a log of major changes in dehydrated
55## Added
66- Implemented support for certificate profile selection
77- Added a configuration parameter to allow for timeouts during order processing (`ORDER_TIMEOUT`, defaults to 0 = no timeout)
8+ - Allowed for automatic deletion of old files (`AUTO_CLEANUP_DELETE`, disabled by default)
89
910## Changed
1011- Renew certificates with 32 days remaining (instead of 30) to avoid issues with monthly cronjobs (`RENEW_DAYS=32`)
Original file line number Diff line number Diff line change @@ -395,6 +395,7 @@ load_config() {
395395 IP_VERSION=
396396 CHAINCACHE=
397397 AUTO_CLEANUP=" no"
398+ AUTO_CLEANUP_DELETE=" no"
398399 DEHYDRATED_USER=
399400 DEHYDRATED_GROUP=
400401 API=" auto"
@@ -1966,8 +1967,8 @@ command_sign_domains() {
19661967
19671968 [[ -n " ${HOOK} " ]] && (" ${HOOK} " " exit_hook" || echo ' exit_hook returned with non-zero exit code!' >&2 )
19681969 if [[ " ${AUTO_CLEANUP} " == " yes" ]]; then
1969- echo " + Running automatic cleanup"
1970- command_cleanup noinit
1970+ echo " + Running automatic cleanup"
1971+ PARAM_CLEANUPDELETE= " ${AUTO_CLEANUP_DELETE :- no} " command_cleanup noinit | _sed ' s/^/ + /g '
19711972 fi
19721973
19731974 exit " ${exit_with_errorcode} "
Original file line number Diff line number Diff line change 125125# Automatic cleanup (default: no)
126126#AUTO_CLEANUP="no"
127127
128+ # Delete files during automatic cleanup instead of moving to archive (default: no)
129+ #AUTO_CLEANUP_DELETE="no"
130+
128131# ACME API version (default: auto)
129132#API=auto
130133
You can’t perform that action at this time.
0 commit comments