Fixed docker entrypoint command execution

This commit is contained in:
Alexey Pustovalov
2019-10-03 18:16:08 +03:00
parent df44f84b89
commit 7fb5abe44f
8 changed files with 40 additions and 27 deletions

View File

@ -391,11 +391,14 @@ prepare_proxy() {
#################################################
prepare_proxy
if [ "${1#-}" != "$1" ]; then
set -- /usr/sbin/zabbix_proxy "$@"
fi
echo "########################################################"
if [ "$1" == '/usr/sbin/zabbix_proxy' ]; then
prepare_proxy
fi
echo "** Executing '$@'"
exec "$@"
#################################################