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 <