From 7b8f819639a20c41abf3fb2e2d397055141fafcb Mon Sep 17 00:00:00 2001 From: Zoey Date: Thu, 16 Mar 2023 10:50:29 +0100 Subject: [PATCH] FULLCLEAN: also clean certbot Signed-off-by: Zoey --- rootfs/bin/start.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rootfs/bin/start.sh b/rootfs/bin/start.sh index 8f8a6e7e..45f46b69 100755 --- a/rootfs/bin/start.sh +++ b/rootfs/bin/start.sh @@ -174,6 +174,9 @@ if [ -n "$FULLCLEAN" ]; then fi if [ "$FULLCLEAN" = true ]; then + find /data/tls/certbot/csr -mtime +90 -name "*.pem" -delete + find /data/tls/certbot/keys -mtime +90 -name "*.pem" -delete + find /data/tls/certbot/archive -mtime +90 -name "*.pem" -delete if [ "$PHP81" != true ] && [ "$PHP82" != true ]; then rm -vrf /data/php fi