Merge pull request #2706 from dokku/2686-missing-nginx-dir

fix: ensure nginx conf.d directory exists when running nginx install hook
This commit is contained in:
Jose Diaz-Gonzalez
2017-04-10 12:48:25 -06:00
committed by GitHub

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;