thelounge-docker/docker-entrypoint.sh
2020-01-01 13:09:21 +01:00

9 lines
169 B
Bash
Executable file

#!/bin/sh
if [ "$1" = "thelounge" -a "$(id -u)" = '0' ]; then
find "${THELOUNGE_HOME}" \! -user node -exec chown node '{}' +
exec su node -c "$*"
fi
exec "$@"