Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FEATURES_VERBOSE flag for featureUtility verbose output #600

Open
wants to merge 1 commit into
base: vNext
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion releases/latest/kernel-slim/helpers/build/features.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

if [[ "$FEATURES_VERBOSE" == "true" && "$VERBOSE" != "true" ]]; then
echo "WARNING: 'FEATURES_VERBOSE' is 'true' but 'VERBOSE' is 'false'. featureUtility verbose output will be suppressed"
fi

. /opt/ol/helpers/build/internal/logger.sh

set -Eeox pipefail
Expand Down Expand Up @@ -28,6 +32,9 @@ if [ "$SSL" == "true" ] || [ "$TLS" == "true" ]; then
fi

# Install necessary features using featureUtility
featureUtility installServerFeatures --acceptLicense defaultServer --noCache
if [ "$FEATURES_VERBOSE" == "true" ]; then
verbose="--verbose"
fi
featureUtility installServerFeatures --acceptLicense defaultServer --noCache $verbose
find /opt/ol/wlp/lib /opt/ol/wlp/bin ! -perm -g=rw -print0 | xargs -0 -r chmod g+rw