Automating PostgreSQl Installation Using Shell Script

Source: Automating PostgreSQl Installation Using Shell Script