mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
remove every trace, not just the live version (#1088)
This commit is contained in:
parent
ad487ffd3a
commit
cdc6dfba6a
@ -53,7 +53,10 @@ then
|
||||
if [ -f "$CERTFILES/$SUBDOMAIN/cert.pem" ]
|
||||
then
|
||||
yes no | certbot revoke --cert-path "$CERTFILES/$SUBDOMAIN/cert.pem"
|
||||
rm -rf "${CERTFILES:?/}"/"${SUBDOMAIN:?}"*
|
||||
REMOVE_OLD="$(find "$LETSENCRYPTPATH/" -name "$SUBDOMAIN*")"
|
||||
for remove in $REMOVE_OLD
|
||||
do rm -rf "$remove"
|
||||
done
|
||||
fi
|
||||
# Remove Apache2 config
|
||||
if [ -f "$SITES_AVAILABLE/$SUBDOMAIN.conf" ]
|
||||
@ -125,7 +128,10 @@ then
|
||||
if [ -f "$CERTFILES/$SUBDOMAIN/cert.pem" ]
|
||||
then
|
||||
yes no | certbot revoke --cert-path "$CERTFILES/$SUBDOMAIN/cert.pem"
|
||||
rm -rf "${CERTFILES:?/}"/"${SUBDOMAIN:?}"*
|
||||
REMOVE_OLD="$(find "$LETSENCRYPTPATH/" -name "$SUBDOMAIN*")"
|
||||
for remove in $REMOVE_OLD
|
||||
do rm -rf "$remove"
|
||||
done
|
||||
fi
|
||||
# Remove Apache2 config
|
||||
if [ -f "$SITES_AVAILABLE/$SUBDOMAIN.conf" ]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user