thelounge-docker/docker-entrypoint.sh
Jeffrey Serio e4c4d3f9f0
Fix bug in conditional expression
Shellcheck complains that use of '-a' is not well-defined and recommends '&&', and also to separate each expression between '&&' with brackets.
2020-07-06 20:17:03 -05: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 "$@"