Files
wlan-cloud-ucentralsec/docker-entrypoint.sh
2021-07-28 10:48:23 +03:00

12 lines
262 B
Bash
Executable File

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