Clearing letsencrypt pipe

This commit is contained in:
myvesta 2020-06-13 00:03:25 +02:00 committed by GitHub
commit 21d4b3ee40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,8 +147,11 @@ if [ ! -f "/usr/local/vesta/data/upgrades/clamav_block_exe_in_archives" ]; then
fi
# Clearing letsencrypt pipe
if [ -f "/usr/local/vesta/data/queue/letsencrypt.pipe" ]; then
truncate -s 0 /usr/local/vesta/data/queue/letsencrypt.pipe
if [ ! -f "/usr/local/vesta/data/upgrades/clearing-letsencrypt-pipe" ]; then
touch /usr/local/vesta/data/upgrades/clearing-letsencrypt-pipe
if [ -f "/usr/local/vesta/data/queue/letsencrypt.pipe" ]; then
truncate -s 0 /usr/local/vesta/data/queue/letsencrypt.pipe
fi
fi
# Run custom triggers