0
0x1def 5dde7c8e28
Refactored Bitnami base
- restructured directories
- removed unused libraries
- removed welcome message
- refactored docker file
2024-09-03 23:42:43 +03:00

25 lines
408 B
Bash
Executable File

#!/bin/sh
# Copyright VMware, Inc.
# SPDX-License-Identifier: APACHE-2.0
set -u
if [ $# -eq 0 ]; then
>&2 echo "No arguments provided"
exit 1
fi
script=$1
exit_code="${2:-96}"
fail_if_not_present="${3:-n}"
if test -f "$script"; then
sh $script
if [ $? -ne 0 ]; then
exit $((exit_code))
fi
elif [ "$fail_if_not_present" = "y" ]; then
>&2 echo "script not found: $script"
exit 127
fi