Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Commit

Permalink
Merge pull request #265 from ludeeus/postgre-fix
Browse files Browse the repository at this point in the history
PostgreSQL: Use version 11 on newer images
  • Loading branch information
Landrash committed Apr 21, 2019
2 parents 3d92d92 + e47d456 commit f815c94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package/opt/hassbian/suites/postgresql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ function postgresql-show-copyright-info {
function postgresql-install-package {
echo "Running apt-get preparation"
apt-get update
apt-get install -y postgresql-server-dev-9.6 postgresql-9.6

if [ "$(lsb_release -cs)" == "stretch" ]; then
apt-get install -y postgresql-server-dev-9.6 postgresql-9.6
else
apt-get install -y postgresql-server-dev-11 postgresql-11
fi

echo "Changing to homeassistant user"
sudo -u homeassistant -H /bin/bash <<EOF
Expand Down

0 comments on commit f815c94

Please sign in to comment.