feat: some more debugging
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
36b1335fe9
commit
7fefca47c9
13
install.sh
13
install.sh
@ -35,17 +35,18 @@ curl -L "https://api-minio.front.kjuulh.io/${S3_BUCKET}/releases/${APP_NAME}/${A
|
|||||||
# Make binary executable
|
# Make binary executable
|
||||||
chmod +x "${INSTALL_DIR}/${BINARY_NAME}"
|
chmod +x "${INSTALL_DIR}/${BINARY_NAME}"
|
||||||
|
|
||||||
|
echo "Starting churn agent setup..."
|
||||||
res=$(churn agent setup --discovery "${CHURN_DISCOVERY}" 2>&1)
|
res=$(churn agent setup --discovery "${CHURN_DISCOVERY}" 2>&1)
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
echo "Debug - Full output: $res"
|
echo "Command output: $res"
|
||||||
echo "Debug - Exit code: $exit_code"
|
echo "Exit code: $exit_code"
|
||||||
|
|
||||||
if [[ $exit_code != 0 ]]; then
|
if [[ $exit_code != 0 ]]; then
|
||||||
# Convert to lowercase to make matching more reliable
|
if [[ "$res" != *"config file already exists"* ]] && [[ "$res" != *"already exists"* ]]; then
|
||||||
res_lower=$(echo "$res" | tr '[:upper:]' '[:lower:]')
|
echo "Error detected: $res"
|
||||||
if [[ "$res_lower" != *"config file already exists"* ]] && [[ "$res_lower" != *"already exists"* ]]; then
|
|
||||||
echo "Error: $res"
|
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Ignoring expected 'already exists' error"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user