Luzifer / nginx-sso

SSO authentication provider for the auth_request nginx module
Apache License 2.0
286 stars 41 forks source link

cp: can't create directory '/data/frontend': Permission denied #79

Closed jangrewe closed 1 year ago

jangrewe commented 1 year ago

Hi, i think you broke the Docker image a bit, as i get this error when trying to start it:

docker run --rm docker.io/luzifer/nginx-sso:v0.27.0
cp: can't create directory '/data/frontend': Permission denied

I also noticed that you're using -d in docker-start.sh to check if the file /data/frontend/index.html exists - shouldn't that be -f then?

And lastly, i'm using my own frontend, so when mounting /etc/nginx-sso to /data, i get this:

cp: can't create '/data/frontend/index.html': File exists

Everything works as expected with 0.26.0, though!

Luzifer commented 1 year ago

Good catch… That should indeed be -f, not -d… Interesting it didn't appear until now - that line was last touched December 2022… 😅

The permission error (cp: can't create directory '/data/frontend': Permission denied) is caused by the user change… Didn't happen for me as I'm mounting a K8s Secret there… :/

jangrewe commented 1 year ago

Confirmed working! Thanks for the quick response and fix. <3

Luzifer commented 1 year ago

Thanks for the report and quick adoption! Great to see there are users aside of my own systems… :D