Function server_forge::deployment::deploy_postgresql
source · pub fn deploy_postgresql() -> Result<(), Box<dyn Error>>
Expand description
Deploys and configures the PostgreSQL database server.
This function installs PostgreSQL using the appropriate package manager, initializes the database if necessary (for CentOS/Fedora), starts the PostgreSQL service, and enables it to start on boot.
§Returns
Returns Ok(())
if PostgreSQL is deployed successfully, or an error if deployment fails.