mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-04-21 16:01:20 +02:00
load config in cleanup command (fixes #137)
This commit is contained in:
@@ -666,6 +666,8 @@ command_revoke() {
|
|||||||
# Usage: --cleanup (-gc)
|
# Usage: --cleanup (-gc)
|
||||||
# Description: Move unused certificate files to archive directory
|
# Description: Move unused certificate files to archive directory
|
||||||
command_cleanup() {
|
command_cleanup() {
|
||||||
|
load_config
|
||||||
|
|
||||||
# Create global archive directory if not existant
|
# Create global archive directory if not existant
|
||||||
if [[ ! -e "${BASEDIR}/archive" ]]; then
|
if [[ ! -e "${BASEDIR}/archive" ]]; then
|
||||||
mkdir "${BASEDIR}/archive"
|
mkdir "${BASEDIR}/archive"
|
||||||
|
|||||||
Reference in New Issue
Block a user