Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

pgSCV auto update

Alexey Lesovsky edited this page May 5, 2021 · 2 revisions

pgSCV auto-update.

TLDR: Enable auto-update feature.

pgSCV provides auto-update feature (disabled by default). When enabled, during the runtime, pgSCV with random interval (from 60 to 120 minutes) checks Github API for new pgSCV releases. If new version released, pgSCV download the archive with new version, unpack it, update itself and restart Systemd service. There are two main conditions have to be met:

  • directory where pgSCV binary resides should be writable for user which runs pgSCV
  • pgSCV should have privileges to restart System service.

If there is no such privilege, pgSCV will update itself, but will fail to restart the service. You could see specific messages in the logs.

Both conditions should be seriously considered from security point of view.

To enable auto-update, add autoupdate parameter with one of the following options:

  • stable - allow auto-update only from stable releases
  • devel - allow auto-update from release candidates
  • off - disable auto-update

It is recommended to always use stable setting.