From 2f193313781c1fa058c6a7b01b5c90b1f28a79cc Mon Sep 17 00:00:00 2001 From: dosse91 Date: Tue, 8 Mar 2022 13:57:30 +0100 Subject: [PATCH] Fixed a bug that caused the frontend-only mode to not work properly with telemetry enabled on the docker version --- docker/entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 516ae0d..d08ff05 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -37,6 +37,11 @@ fi # Apply Telemetry settings when running in standalone or frontend mode and telemetry is enabled if [[ "$TELEMETRY" == "true" && ( "$MODE" == "frontend" || "$MODE" == "standalone" ) ]]; then cp -r /speedtest/results /var/www/html/results + + if [ "$MODE" == "frontend" ]; then + mkdir /var/www/html/backend + cp /speedtest/backend/getIP_util.php /var/www/html/backend + fi if [ "$DB_TYPE" == "mysql" ]; then sed -i 's/$db_type = '\''.*'\''/$db_type = '\'$DB_TYPE\''/g' /var/www/html/results/telemetry_settings.php