Instalação do GNU Health - ERRO

Alguém conhece e já fez a instalação do GNU Health?
Tentei aqui de diversas formas mas infelizmente da erro.

Procurei em varias formas de instalar mas da ERRO.

Procedimento de Instalação:
https://en.m.wikibooks.org/wiki/GNU_Health/Installation

Estou Tentando instalar no Ubuntu 18.04 LTS
Fiz 03 scripts para fazer e refazer a instação

01.sh
#!/bin/bash
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install python3-distutils -y
sudo apt install python3-pip python3-dev build-essential libssl-dev libffi-dev python3-setuptools -y
sudo apt install python3-venv -y
sudo apt-get install python3.8 -y
sudo apt install python-pip -y
sudo apt-get install gunicorn -y
pip install flask
sudo apt-get install tryton-server -y

02.sh
#!/bin/bash
#Operating System
#Ubuntu 18.04.3 LTS Server
sudo apt-get install python3-pip 2to3 unoconv postgresql-10 postgresql-server-dev-10 libpq-dev libarchive-tools -y
sudo apt-get install postgresql patch python3-pip unoconv -y
sudo su - postgres -c “psql -t -P format=unaligned -c ‘show hba_file’”
sudo nano /etc/postgresql/10/main/pg_hba.conf
sudo sudo service postgresql restart

sudo su - postgres -c “createuser --createdb --no-createrole --no-superuser gnuhealth”

cd $HOME
wget https://ftp.gnu.org/gnu/health/gnuhealth-latest.tar.gz
gpg --recv-key 0xC015E1AE00989199
gpg --with-fingerprint --list-keys 0xC015E1AE00989199
wget https://ftp.gnu.org/gnu/health/gnuhealth-3.6.4.tar.gz.sig
gpg --verify gnuhealth-3.6.4.tar.gz.sig gnuhealth-latest.tar.gz
tar xzf gnuhealth-latest.tar.gz
cd gnuhealth-3.6.4
wget -qO- https://ftp.gnu.org/gnu/health/gnuhealth-setup-latest.tar.gz | tar -xzvf -

03.sh
#!/bin/bash
cd gnuhealth-3.6.4
./gnuhealth-setup install
source ${HOME}/.gnuhealthrc./
createdb --encoding=unicode tutorial1database
sudo apt-get install tryton-client -y

O Erro ocorre no 02.sh
gnuhealth@gnuhealth:~$ sudo su - postgres -c “createuser --createdb --no-createrole --no-superuser gnuhealth”
createuser: could not connect to database postgres: could not connect to server: No such file or directory
** Is the server running locally and accepting**
** connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”?**

Alguém já instalou ou tem como dar um Help

O Postgresql está sendo ativo? Qual a saída do comando?
sudo systemctl status postgresql.service

Se estiver inativo, use o seguinte comando para iniciá-lo:
sudo systemctl start postgresql.service

Pelo manual ele pede pra mudar o tipo de autenticação mas se eu fizer isso da esse erro.

Vendo isso, mantive o padrão, não mudei pro True, e passou desse erro, ai agora deu erro no script 3 no python.