Update ADC install script to export PATH and improve logging
This commit is contained in:
@@ -76,12 +76,14 @@ spec:
|
|||||||
mv /tmp/adc /usr/local/bin/adc
|
mv /tmp/adc /usr/local/bin/adc
|
||||||
rm -f /tmp/adc.tar.gz
|
rm -f /tmp/adc.tar.gz
|
||||||
|
|
||||||
# Verify ADC installation
|
# Verify ADC installation and update PATH
|
||||||
|
export PATH="/usr/local/bin:$PATH"
|
||||||
if ! command -v adc &> /dev/null; then
|
if ! command -v adc &> /dev/null; then
|
||||||
echo "ERROR: ADC installation failed"
|
echo "ERROR: ADC installation failed"
|
||||||
|
ls -la /usr/local/bin/
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "ADC installed successfully: $(adc version 2>/dev/null || echo ${ADC_VERSION})"
|
echo "ADC installed successfully: $(adc version 2>/dev/null || echo 'installed')"
|
||||||
|
|
||||||
# Wait for API7 Gateway to be ready
|
# Wait for API7 Gateway to be ready
|
||||||
echo "Waiting for API7 Gateway to be available..."
|
echo "Waiting for API7 Gateway to be available..."
|
||||||
|
|||||||
Reference in New Issue
Block a user