summarylogtreecommitdiffstats
path: root/nginx-vhosts-internal-functions.patch
blob: 5b5a74c190f2fc5d04b09384c8e14ba9be808e18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/plugins/nginx-vhosts/internal-functions	2025-04-16 23:08:15.000000000 +0200
+++ b/plugins/nginx-vhosts/internal-functions	2025-05-08 19:52:31.781541854 +0200
@@ -679,6 +679,11 @@
     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