Merge pull request #7719 from d1ceward/hotfix/use_correct_systemctl_path

Fix: Add missing `systemctl` path detection in nginx-vhost plugin
This commit is contained in:
Jose Diaz-Gonzalez
2025-05-24 02:23:08 -04:00
committed by GitHub

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