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