Rename some internal environment variables that could conflict with Kubernetes. Fixes #4999.

This commit is contained in:
Dave Page
2019-12-13 10:42:43 +05:30
committed by Akshay Joshi
parent 8e8f89aa8f
commit 8cb239abcb
6 changed files with 20 additions and 21 deletions

View File

@@ -341,8 +341,8 @@ void Server::run()
// Set the port number and key, and force SERVER_MODE off.
Logger::GetLogger()->Log("Set the port number, key and force SERVER_MODE off");
PyRun_SimpleString(QString("PGADMIN_PORT = %1").arg(m_port).toLatin1());
PyRun_SimpleString(QString("PGADMIN_KEY = '%1'").arg(m_key).toLatin1());
PyRun_SimpleString(QString("PGADMIN_INT_PORT = %1").arg(m_port).toLatin1());
PyRun_SimpleString(QString("PGADMIN_INT_KEY = '%1'").arg(m_key).toLatin1());
PyRun_SimpleString(QString("SERVER_MODE = False").toLatin1());
// Run the app!