mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-10 08:53:06 +00:00
Fix docker user permissions issues (#1194)
This commit is contained in:
10
docker-entrypoint.sh
Executable file
10
docker-entrypoint.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# If we are root, ensure the files in /out are writable
|
||||
# by the dce user and restart the process as the dce user
|
||||
if [ "$(id -u)" = '0' ]; then
|
||||
chown -R dce:dce /out
|
||||
exec su-exec dce "$0" "$@"
|
||||
fi
|
||||
|
||||
exec ./DiscordChatExporter.Cli "$@"
|
||||
Reference in New Issue
Block a user