RM 5235 - Support external config files

Поиск
Список
Период
Сортировка
Искать

RM 5235 - Support external config files

От:
Dave Page <dpage@pgadmin.org>
Дата:
Вложения:
The attached patch adds support for config_system.py files stored outside of the application installation directory to allow sysadmins (and users with appropriate permissions) to override configuration options system wide and without invalidating signatures such as those found on the macOS app bundle.

Configuration will be loaded from the following locations, if present:

Linux: /etc/pgadmin/config_system.py
macOS: /Library/Preferences/pgadmin/config_system.py
Windows: %CommonProgramFiles%\pgadmin\config_system.py

Please review/commit.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EDB: http://www.enterprisedb.com

Re: RM 5235 - Support external config files

От:
Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Дата:

On Fri, Jul 17, 2020 at 3:45 PM Dave Page <dpage@pgadmin.org> wrote:
The attached patch adds support for config_system.py files stored outside of the application installation directory to allow sysadmins (and users with appropriate permissions) to override configuration options system wide and without invalidating signatures such as those found on the macOS app bundle.

Configuration will be loaded from the following locations, if present:

Linux: /etc/pgadmin/config_system.py
macOS: /Library/Preferences/pgadmin/config_system.py
Windows: %CommonProgramFiles%\pgadmin\config_system.py

Please review/commit.
How about putting them in $HOME/.pgadmin/config_local.py (applicable only for runtime)?

--

Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EDB: http://www.enterprisedb.com

Re: RM 5235 - Support external config files

От:
Dave Page <dpage@pgadmin.org>
Дата:


On Fri, Jul 17, 2020 at 11:23 AM Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote:

On Fri, Jul 17, 2020 at 3:45 PM Dave Page <dpage@pgadmin.org> wrote:
The attached patch adds support for config_system.py files stored outside of the application installation directory to allow sysadmins (and users with appropriate permissions) to override configuration options system wide and without invalidating signatures such as those found on the macOS app bundle.

Configuration will be loaded from the following locations, if present:

Linux: /etc/pgadmin/config_system.py
macOS: /Library/Preferences/pgadmin/config_system.py
Windows: %CommonProgramFiles%\pgadmin\config_system.py

Please review/commit.
How about putting them in $HOME/.pgadmin/config_local.py (applicable only for runtime)?

Because then they wouldn't be system-wide. 

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EDB: http://www.enterprisedb.com

Re: RM 5235 - Support external config files

От:
Akshay Joshi <akshay.joshi@enterprisedb.com>
Дата:
Thanks, patch applied. Tested on OSX only.

On Fri, Jul 17, 2020 at 3:56 PM Dave Page <dpage@pgadmin.org> wrote:


On Fri, Jul 17, 2020 at 11:23 AM Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote:

On Fri, Jul 17, 2020 at 3:45 PM Dave Page <dpage@pgadmin.org> wrote:
The attached patch adds support for config_system.py files stored outside of the application installation directory to allow sysadmins (and users with appropriate permissions) to override configuration options system wide and without invalidating signatures such as those found on the macOS app bundle.

Configuration will be loaded from the following locations, if present:

Linux: /etc/pgadmin/config_system.py
macOS: /Library/Preferences/pgadmin/config_system.py
Windows: %CommonProgramFiles%\pgadmin\config_system.py

Please review/commit.
How about putting them in $HOME/.pgadmin/config_local.py (applicable only for runtime)?

Because then they wouldn't be system-wide. 

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EDB: http://www.enterprisedb.com



--
Thanks & Regards
Akshay Joshi
Sr. Software Architect
EnterpriseDB Software India Private Limited
Mobile: +91 976-788-8246
FAQ