PERF: Remove unneeded recursive `chown` (#567)
authorDavid Taylor <david@taylorhq.com>
Fri, 27 Aug 2021 10:11:28 +0000 (11:11 +0100)
committerGitHub <noreply@github.com>
Fri, 27 Aug 2021 10:11:28 +0000 (11:11 +0100)
commit060dd099ae95869c57848e73257ceeab3dbb461e
treeb80693908e4654992db520143452d6148b5e1914
parent45b4e7c35a371951484cd5e27a1c9db3f96af9e1
PERF: Remove unneeded recursive `chown` (#567)

This command can take a very long time (> 2 minutes on a CDCK build machine) now that the directory contains the `yarn` cache. However, there are no files in `/home/discourse` that are owned by a different user, so the command does absolutely nothing. This can be demonstrated by using the `-c` flag (which prints any changes made):

```
docker run --rm -it discourse/base:2.0.20210826-1706 /bin/bash -c "time chown -cR discourse /home/discourse"
```

This has an empty output for the latest base image. Therefore this line can be safely removed
templates/web.template.yml