Azure/wordpress-linux-appservice

Startup script lacks permissions to modify nginx config files

Closed this issue · 3 comments

Due to this instruction, it should be possible to modify nginx config files.

However, the startup script (/home/dev/startup.sh) is run as the nobody user which has insufficient permissions to modify nginx files owned by root:

image

Hi @PatrykPlewaOfficial, startup script is run by the root user. It should have sufficient permissions to modify the nginx config files. Can you please post your error or content of startup.sh file?

@PatrykPlewaOfficial Please share the steps to reproduce the issue

Weird situation. I was diagnosing why my changes were not being applied so I inserted this line into the shell file

whoami > /home/site/test

and I saw nobody in the test file.

However the other day after a restart it changed the content of the file with root.

I guess everything works as desired then. Can be closed. Just one weird result.