Files
wlan-cloud-ucentralgw/docker-entrypoint.sh
2021-07-28 10:58:00 +03:00

12 lines
257 B
Bash
Executable File

#!/bin/sh
set -e
if [ "$1" = '/ucentral/ucentralgw' -a "$(id -u)" = '0' ]; then
if [ "$RUN_CHOWN" = 'true' ]; then
chown -R "$UCENTRALGW_USER": "$UCENTRALGW_ROOT" "$UCENTRALGW_CONFIG"
fi
exec su-exec "$UCENTRALGW_USER" "$@"
fi
exec "$@"