Skip to content

Instantly share code, notes, and snippets.

View C-Pro's full-sized avatar
💭
👍

Sergey Melekhin C-Pro

💭
👍
View GitHub Profile
#!/bin/bash
set -eux
packages="postgresql-$PGVERSION postgresql-server-dev-$PGVERSION postgresql-common"
# bug: http://www.postgresql.org/message-id/20130508192711.GA9243@msgid.df7cb.de
sudo update-alternatives --remove-all postmaster.1.gz
sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install $packages