mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-10-30 02:12:32 +00:00
12 lines
262 B
Bash
Executable File
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 "$@"
|