fix: ensure nginx conf.d directory exists when running nginx install hook
Closes #2686
This commit is contained in:
1 parent
afef3b94d5
commit
5101096518
1 file changed
+2
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user