mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-08 04:05:00 -05:00
Ensure that DATA_DIR dependent folders/files are automatically created inside the specified DATA_DIR if they are not specified separately in the configuration file.. #5513
This commit is contained in:
@@ -46,11 +46,11 @@ The configuration files are as follows:
|
||||
Windows,%CommonProgramFiles%\\pgadmin\\config_system.py
|
||||
|
||||
.. note:: If the SERVER_MODE or DATA_DIR settings are changed in
|
||||
``config_distro.py``, ``config_local.py``, or ``config_system.py`` you
|
||||
will most likely need to re-set the LOG_FILE, SQLITE_PATH, SESSION_DB_PATH,
|
||||
STORAGE_DIR, KERBEROS_CCACHE_DIR, and AZURE_CREDENTIAL_CACHE_DIR values
|
||||
as well as they will have been set based on the default configuration or
|
||||
overridden by the runtime.
|
||||
``config_distro.py``, ``config_local.py``, or ``config_system.py``
|
||||
LOG_FILE, SQLITE_PATH, SESSION_DB_PATH, STORAGE_DIR, KERBEROS_CCACHE_DIR,
|
||||
and AZURE_CREDENTIAL_CACHE_DIR values will be set based on DATA_DIR unless
|
||||
values are explicitly overridden for any of the variable in any of the
|
||||
above file.
|
||||
|
||||
The default ``config.py`` file is shown below for reference:
|
||||
|
||||
|
||||
@@ -86,7 +86,9 @@ In order to configure the Python code, follow these steps:
|
||||
file locations should be appropriate:
|
||||
|
||||
*NOTE: You must ensure the directories specified are writeable by
|
||||
the user that the web server processes will be running as, e.g. apache or www-data.*
|
||||
the user that the web server processes will be running as, e.g. apache or www-data.
|
||||
You may specify DATA_DIR in order to create all required directories and files
|
||||
under DATA_DIR folder.*
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@@ -94,6 +96,8 @@ In order to configure the Python code, follow these steps:
|
||||
SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db'
|
||||
SESSION_DB_PATH = '/var/lib/pgadmin4/sessions'
|
||||
STORAGE_DIR = '/var/lib/pgadmin4/storage'
|
||||
AZURE_CREDENTIAL_CACHE_DIR = '/var/lib/pgadmin4/azurecredentialcache'
|
||||
KERBEROS_CCACHE_DIR = '/var/lib/pgadmin4/kerberoscache'
|
||||
|
||||
4. Run the following command to create the configuration database:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user