DiscordChatExporter/docker-entrypoint.sh
2024-01-31 14:39:25 +02:00

10 lines
256 B
Bash
Executable file

#!/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 "$@"