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

Closes #2686
This commit is contained in:
Jose Diaz-Gonzalez
2017-04-10 00:37:21 -06:00
parent afef3b94d5
commit 5101096518

View File

@@ -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<<EOF > /etc/nginx/conf.d/dokku.conf
include $DOKKU_ROOT/*/nginx.conf;