mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-10-30 02:12:32 +00:00
Fix: make chown execution optional in docker-entrypoint
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
set -e
|
||||
|
||||
if [ "$1" = '/ucentral/ucentralsec' -a "$(id -u)" = '0' ]; then
|
||||
chown -R "$UCENTRALSEC_USER": "$UCENTRALSEC_ROOT" "$UCENTRALSEC_CONFIG"
|
||||
if [ "$RUN_CHOWN" = 'true' ]; then
|
||||
chown -R "$UCENTRALSEC_USER": "$UCENTRALSEC_ROOT" "$UCENTRALSEC_CONFIG"
|
||||
fi
|
||||
exec su-exec "$UCENTRALSEC_USER" "$@"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user