From 1f359f5a13f3bfd9dddbac47d8e6dbc2ab1c6f49 Mon Sep 17 00:00:00 2001 From: Samantaz Fox Date: Sat, 21 May 2022 19:18:01 +0200 Subject: [PATCH] Print some helpful notice for PostgreSQL configuration --- scripts/deploy-database.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/deploy-database.sh b/scripts/deploy-database.sh index 9f0bffcb..ed9464e6 100644 --- a/scripts/deploy-database.sh +++ b/scripts/deploy-database.sh @@ -39,3 +39,22 @@ else sudo -u postgres -- psql -c "CREATE DATABASE invidious WITH OWNER kemal;" sudo -u postgres -- psql -c "GRANT ALL ON DATABASE invidious TO kemal;" fi + + +# +# Instructions for modification of pg_hba.conf +# + +if [ "$interactive" = "true" ]; then + echo + echo "-------------" + echo " NOTICE " + echo "-------------" + echo + echo "Make sure that your postgreSQL's pg_hba.conf file contains the follwong" + echo "lines before previous 'host' configurations:" + echo + echo "host invidious kemal 127.0.0.1/32 md5" + echo "host invidious kemal ::1/128 md5" + echo +fi