From 21d4b3ee400136db0c3acb2b668dd01272641fdf Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Sat, 13 Jun 2020 00:03:25 +0200 Subject: [PATCH] Clearing letsencrypt pipe --- src/deb/vesta/postinst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/deb/vesta/postinst b/src/deb/vesta/postinst index 8ce87d168..b3b280f5d 100755 --- a/src/deb/vesta/postinst +++ b/src/deb/vesta/postinst @@ -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