diff --git a/pre-deployment-test.sh b/pre-deployment-test.sh index d39132f..9f28412 100644 --- a/pre-deployment-test.sh +++ b/pre-deployment-test.sh @@ -107,6 +107,11 @@ check_tools check_wallarm_cloud check_internal_app +if [[ "$SUDO_RESULT" == "PASS" ]] && [[ "$CLOUD_RESULT" == "PASS" ]]; then + echo "$(date +%Y-%m-%d %H:%M:%S)" > /tmp/.wallarm_preflight_pass + echo -e "${GREEN}Environment verified. Readiness flag created.${NC}" +fi + echo -e "\n${YELLOW}-------------------------------------------------------" echo -e "PRE-FLIGHT COMPLETE. PLEASE SCREENSHOT THIS OUTPUT." -echo -e "-------------------------------------------------------${NC}" \ No newline at end of file +echo -e "-------------------------------------------------------${NC}"