mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-02-22 17:37:04 +00:00
Handle no existence of expired certificates before trying to move them into ssl.expired subdirectory (#2480)
Shell option 'nullglob' to prevent the following 'for' loop from being entered even when no matching files are present.
This commit is contained in:
parent
5ef85f3d02
commit
41cbf0ba8e
@ -2,7 +2,7 @@
|
||||
# Cleanup SSL certificates which expired more than 7 days ago from $STORAGE_ROOT/ssl and move them to $STORAGE_ROOT/ssl.expired
|
||||
|
||||
source /etc/mailinabox.conf
|
||||
shopt -s extglob
|
||||
shopt -s extglob nullglob
|
||||
|
||||
retain_after="$(date --date="7 days ago" +%Y%m%d)"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user