From 510109651811c2c2e5f809922ef79bf8e2c93043 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 10 Apr 2017 00:37:21 -0600 Subject: [PATCH] fix: ensure nginx conf.d directory exists when running nginx install hook Closes #2686 --- plugins/nginx-vhosts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/nginx-vhosts/install b/plugins/nginx-vhosts/install index 8b4d53217..6057a8720 100755 --- a/plugins/nginx-vhosts/install +++ b/plugins/nginx-vhosts/install @@ -28,6 +28,8 @@ chmod 0440 /etc/sudoers.d/dokku-nginx # if dokku.conf has not been created, create it if [[ ! -f /etc/nginx/conf.d/dokku.conf ]]; then + mkdir -p /etc/nginx/conf.d + chown root:root /etc/nginx/conf.d cat< /etc/nginx/conf.d/dokku.conf include $DOKKU_ROOT/*/nginx.conf;