feat: Fixes entrypoint script that was not appropriately handling arguments to hpa script.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
declare -a args
|
||||
|
||||
# Allows to attach to a shell inside the container, or run ansbile commands,
|
||||
# otherwise run the 'hpa' script with the given arguments.
|
||||
#
|
||||
@@ -16,7 +18,10 @@ while [[ $# -gt 0 ]]; do
|
||||
exec "$@"
|
||||
exit $?
|
||||
else
|
||||
/usr/local/bin/hpa "$@"
|
||||
args+=("$1")
|
||||
fi
|
||||
shift
|
||||
done
|
||||
|
||||
# If we made it here then run the hpa script.
|
||||
/usr/local/bin/hpa "${args[@]}"
|
||||
|
||||
Reference in New Issue
Block a user