When running `docker compose down`, docker sends SIGTERM to tini and tini sends it to all child
programs (`entrypoint.sh` and therefore qbt-nox and its child programs). However `entrypoint.sh`
exits quite quickly and qbt was still cleaning up but tini detects that its first child process
(`entrypoint.sh`) is exited so itself exits too and leading to docker shutting down the
container abruptly.
Now qbt-nox is being placed as the first child process of tini.
Thanks to @thrnz for providing a fix.
Fixes#9.
When UID or GID is not changed, sed will emit a meaningless warning:
sed: can't create temp file '/etc/groupXXXXXX': Read-only file system
This commit fixes it.