From 65df7c5ce540f00dcbf3de084ec02112aeeaa203 Mon Sep 17 00:00:00 2001 From: Josh Sokol Date: Mon, 13 Apr 2026 09:44:16 -0500 Subject: [PATCH] Fixing mysql root password passing --- simplerisk-minimal/common/entrypoint.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/simplerisk-minimal/common/entrypoint.sh b/simplerisk-minimal/common/entrypoint.sh index 73f8c19..80e3bbe 100644 --- a/simplerisk-minimal/common/entrypoint.sh +++ b/simplerisk-minimal/common/entrypoint.sh @@ -192,14 +192,17 @@ set_mail_settings(){ delete_db(){ print_log "db_deletion: prepare" "Performing database deletion" + # Pass password via env var to avoid shell interpretation of special characters in the value + export MYSQL_PWD="$DB_SETUP_PASS" # Needed to separate the GRANT statement from the rest because it was providing a syntax error - exec_cmd "mysql -u $DB_SETUP_USER -p$DB_SETUP_PASS -h$SIMPLERISK_DB_HOSTNAME -P$SIMPLERISK_DB_PORT <