close
Skip to content
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
Add FEATURES_VERBOSE flag for featureUtility verbose output
Also add a warning if VERBOSE is not enabled at the same time
as the two flags are not independent
  • Loading branch information
idlewis committed Jan 15, 2025
commit 2968346b811adc62f8f9102a4a8f471797594e46
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