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

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