Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand docker support for MSSQL telemetry #634

Open
clndwhr opened this issue Jun 13, 2024 · 0 comments
Open

Expand docker support for MSSQL telemetry #634

clndwhr opened this issue Jun 13, 2024 · 0 comments
Assignees

Comments

@clndwhr
Copy link

clndwhr commented Jun 13, 2024

Description

Expand the docker entrypoint file to support MSSQL telemetry

Why it should be implemented

Expand the container features to match the base programs current feature set

Optional: implementation suggestions

Add the MSSQL settings to the docker entrypoint.sh file after the mysql elif block before the final else such as:

  elif  [ "$DB_TYPE" == "mssql" ]; then
    if [ "$DB_WIN_AUTH" == "" || "$DB_WIN_AUTH" == "false" ]; then
      DB_WIN_AUTH = false;
    fi
    if [ "$DB_TRUST_CERT" == "" ]; then
      DB_TRUST_CERT = true;
    fi
    if [ "$DB_USERNAME" == "" ]; then
      DB_USERNAME = "sa";
    fi
    sed -i 's/$db_type = '\''.*'\''/$db_type = '\'$DB_TYPE\''/g' /var/www/html/results/telemetry_settings.php
    sed -i 's/$MsSql_username = '\''.*'\''/$MsSql_username = '\'$DB_USERNAME\''/g' /var/www/html/results/telemetry_settings.php
    sed -i 's/$MsSql_password = '\''.*'\''/$MsSql_password = '\'$DB_PASSWORD\''/g' /var/www/html/results/telemetry_settings.php
    sed -i 's/$MsSql_server = '\''.*'\''/$MsSql_server = '\'$DB_HOSTNAME\''/g' /var/www/html/results/telemetry_settings.php
    sed -i 's/$MsSql_databasename = '\''.*'\''/$MsSql_databasename = '\'$DB_NAME\''/g' /var/www/html/results/telemetry_settings.php
    sed -i 's/$MsSql_WindowsAuthentication = '\''.*'\''/$MsSql_WindowsAuthentication = '\'$DB_WIN_AUTH\''/g' /var/www/html/results/telemetry_settings.php
    sed -i 's/$MsSql_TrustServerCertificate = '\''.*'\''/$MsSql_TrustServerCertificate = '\'$DB_TRUST_CERT\''/g' /var/www/html/results/telemetry_settings.php
@sstidl sstidl self-assigned this Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants