Do not recursively set permissions for the uploads directory

As pointed out in https://github.com/hedgedoc/container/pull/29#pullrequestreview-818294097, recursively setting permissions
is unwanted behaviour.
Signed-off-by: 's avatarDavid Mehren <git@herrmehren.de>
parent 89dff916
......@@ -30,7 +30,7 @@ fi
if [ "$UID" -eq 0 ] && [ "$CMD_IMAGE_UPLOAD_TYPE" = "filesystem" ]; then
if [ "$UID" -eq 0 ]; then
chown -R hedgedoc ./public/uploads
chmod -R $UPLOADS_MODE ./public/uploads
chmod $UPLOADS_MODE ./public/uploads
else
echo "
#################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment