Azure / wordpress-linux-appservice

MIT License
96 stars 65 forks source link

Startup script lacks permissions to modify nginx config files #121

Closed PatrykPlewaOfficial closed 8 months ago

PatrykPlewaOfficial commented 9 months ago

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

ZubaeyrMSFT commented 9 months ago

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?

ZubaeyrMSFT commented 9 months ago

@PatrykPlewaOfficial Please share the steps to reproduce the issue

PatrykPlewaOfficial commented 8 months ago

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.