Fix retrieval of systemctl path in nginx-vhosts plugin

This commit is contained in:
Fabien LEFEBVRE (d1ceward)
2025-05-22 11:15:06 +02:00
parent 7fae00435b
commit 1f2ef9874d

View File

@@ -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