From 1f2ef9874d8b49b463ed933c771718324105d76e Mon Sep 17 00:00:00 2001 From: "Fabien LEFEBVRE (d1ceward)" Date: Thu, 22 May 2025 11:15:06 +0200 Subject: [PATCH] Fix retrieval of systemctl path in nginx-vhosts plugin --- plugins/nginx-vhosts/internal-functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/nginx-vhosts/internal-functions b/plugins/nginx-vhosts/internal-functions index dd359697e..90a77fb42 100755 --- a/plugins/nginx-vhosts/internal-functions +++ b/plugins/nginx-vhosts/internal-functions @@ -679,6 +679,11 @@ fn-nginx-vhosts-nginx-is-running() { NGINX_INIT_NAME=openresty fi + local systemctl_path=/bin/systemctl + if [[ -x /usr/bin/systemctl ]]; then + systemctl_path=/usr/bin/systemctl + fi + case "$DOKKU_DISTRO" in debian | raspbian) if [[ -x "$systemctl_path" ]]; then