From 141a62ba0401e3c8f9322309b5c79974cf5a6718 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 2 Jan 2023 12:53:26 +0100 Subject: [PATCH] fix the hook script --- templates/vsftpd-letsencrypt-acme.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/vsftpd-letsencrypt-acme.sh.j2 b/templates/vsftpd-letsencrypt-acme.sh.j2 index 24514ce..3d9c731 100644 --- a/templates/vsftpd-letsencrypt-acme.sh.j2 +++ b/templates/vsftpd-letsencrypt-acme.sh.j2 @@ -32,7 +32,7 @@ chgrp root ${VSFTPD_CERTFILE} if [ -x /bin/systemctl ] ; then logger "acme-vsftpd-hook: Restart the VSFTPD service after a certificate renewal" - systemctl restart VSFTPD >> $LE_LOG_DIR/vsftpd.log 2>&1 + /bin/systemctl restart vsftpd >> $LE_LOG_DIR/vsftpd.log 2>&1 echo "acme-vsftpd-hook: Restart the VSFTPD service" >> $LE_LOG_DIR/vsftpd.log else logger "acme-vsftpd-hook: Restart the VSFTPD service after a certificate renewal"