theory / pgenv

PostgreSQL binary manager
MIT License
322 stars 28 forks source link

Add support for a custom post-installation script to be run once #71

Closed fluca1978 closed 7 months ago

fluca1978 commented 7 months ago

The idea is to provide a way to let users to run a custom script at the very first start of the PostgreSQL cluster, so to allow them to automatically initialize their cluster(s). The script has to be run only once per cluster, at the very first start of the instance. In that sense, is a special kind of post-start script. See discussion in #70.

fluca1978 commented 7 months ago

@theory can you please take a look at my implementation? If this is ok we can merge and issue a new release.

theory commented 7 months ago

Looks good. Can you open a PR? Will pull it and try it out.

fluca1978 commented 7 months ago

Looks good. Can you open a PR? Will pull it and try it out.

ops, sorry, I didn't have my coffee!