thelounge-docker/alpine/docker-entrypoint.sh
2020-07-08 17:42:14 +02:00

9 lines
173 B
Bash
Executable file

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