Commit Graph

14 Commits

Author SHA1 Message Date
Chocobo1
bee722307c
Update user ID and group ID only when necessary 2024-05-18 11:48:54 +08:00
Chocobo1
1d964be6e6
Check directory existence before performing operations on it
This is to support the use case where user has their own download
directory and don't use the hardcoded `/downloads` path.
Fixes #20.
2023-12-23 16:10:14 +08:00
Chocobo1
e538c1bd8f
Add backward compatibility for environment variable
The new `QBT_LEGAL_NOTICE` variable will obsolete `QBT_EULA`. Its appearance (and therefore
documentation) is scheduled at the next major qbt release.
2023-11-26 15:56:35 +08:00
Chocobo1
a27e526829
Fix program did not exit cleanly
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.
2023-05-24 18:47:31 +08:00
Chocobo1
c08c142c6a
Add quotes to variable 2023-03-26 15:39:19 +08:00
Chocobo1
799fed1dcc
Add default value for WebUI port 2023-03-26 15:39:19 +08:00
Chocobo1
bd8c87dfea
Use case-insensitive check for EULA
And trim whitespaces along the way.
2023-03-21 13:35:54 +08:00
Chocobo1
bf1561ecec
Always check for EULA env variable
Otherwise if the first run fails, there won't be easy way to fix it.
2023-03-21 13:28:30 +08:00
Chocobo1
5c5cd89f35
Add support for setting umask (#7)
Closes #6.
2023-02-06 13:01:59 +08:00
Chocobo1
c8eb67aa48
Add support for setting additional groups (#5)
Closes #4.
2023-02-02 17:32:45 +08:00
Chocobo1
0fdb44c243
Suppress meaningless warning
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.
2023-01-03 03:00:15 +08:00
Chocobo1
a03bc66ba7
Fix variable name 2023-01-03 02:16:26 +08:00
Chocobo1
0445fdacfd
Support changing UID, GID 2023-01-03 01:57:46 +08:00
Chocobo1
53aba756c5
Import project 2022-12-10 14:30:20 +08:00