fix: ensure nginx conf.d directory exists when running nginx install hook

Closes #2686
This commit is contained in:
Jose Diaz-Gonzalez committed 2017-04-10 00:37:23 -06:00
1 parent afef3b94d5
commit 5101096518
1 file changed
+2
+2
View File
@@ -28,6 +28,8 @@ chmod 0440 /etc/sudoers.d/dokku-nginx
# if dokku.conf has not been created, create it # if dokku.conf has not been created, create it
if [[ ! -f /etc/nginx/conf.d/dokku.conf ]]; then if [[ ! -f /etc/nginx/conf.d/dokku.conf ]]; then
mkdir -p /etc/nginx/conf.d
chown root:root /etc/nginx/conf.d
cat<<EOF > /etc/nginx/conf.d/dokku.conf cat<<EOF > /etc/nginx/conf.d/dokku.conf
include $DOKKU_ROOT/*/nginx.conf; include $DOKKU_ROOT/*/nginx.conf;