1#!/usr/bin/env sh 2 3# If we are root, ensure the files in /out are writable 4# by the dce user and restart the process as the dce user 5if [ "$(id -u)" = '0' ]; then 6 chown -R dce:dce /out 7 exec su-exec dce "$0" "$@" 8fi 9 10exec /opt/app/DiscordChatExporter.Cli "$@" 11 12