Closed Miroka96 closed 3 years ago
Hey @Miroka96 happy new year!
Good spot I must admit I have always avoided the usage of empty spaces in file/folder/page names, linux habbit.
Intresting though, I am now thinking does this only need to be a one off (first time container starts), depends how your creating pages?
Scenario 1: create page from outside container then start container then it would make sense to run permissions everytime it starts. Scenario 2: create page using admin panel, therefor it should be the grav user that would auto set to the correct permission anyway.
Merged current fix, however new issue is open based on my comment #26
Hello!
In my docker logs I came across errors of the following style:
This error is caused by xargs's interpretation of its command line input:
find /var/www/grav -type f | xargs chmod 664
should befind /var/www/grav -type f | xargs -d '\n' chmod 664
, so xargs splits its input at linebreaks and not at spaces.You can see the difference in the following tests:
Best regards, Miroka