← Back to all documents

cai-exos-systems/daveadmin-exos-demo:ops/suitecrm-exos/startup.sh

gitea 225 words Source ↗
Verify the wrapper works before handing off to setup.sh echo "Testing DB connection via wrapper..." if /opt/bitnami/mysql/bin/mysql -h "$SUITECRM_DATABASE_HOST" -P "$SUITECRM_DATABASE_PORT_NUMBER" \ -u "$SUITECRM_DATABASE_USER" -p"$SUITECRM_DATABASE_PASSWORD" "$SUITECRM_DATABASE_NAME" \ -e 'SELECT 1' >/dev/null 2>&1; then echo "DB connection OK" else echo "DB connection FAILED - will retry via setup.sh anyway" fi /opt/bitnami/scripts/suitecrm/setup.sh service cron start exec /opt/bitnami/scripts/apache/run.sh ```