Hi, my first installation and I'm doing the 4 servers model from the documentation as a lab experience.
su - postgres -c "psql --command=\"CREATE ROLE carbonio_adm WITH LOGIN SUPERUSER encrypted password '$DB_ADM_PWD';\""
This command is now working.
Could someone explain better the first part of the documentation?
Is this the first order commands?
apt install postgresql-12 (This worked ok, service running fine)
read -s -p "Password:" DB_ADM_PWD
(how exactly to use this command on Ubuntu 20.04.6?)
unset DB_ADM_PWD
(when to use this command? In the end of the installation or after the " read" command above?)
Now the difficult part:
su - postgres -c "psql --command=\"CREATE ROLE carbonio_adm WITH LOGIN SUPERUSER encrypted password '$DB_ADM_PWD';\""
Should I first do su command to get new terminal or just type as above? Could someone explain giving a command per line?
[psql: error: FATAL: role "rmf" does not exist] rmf is my root user on the Ubuntu installation.
----------------
About read -s -p "Password:" DB_ADM_PWD, it is to do like this?
read -s -p "example123" DB_ADM_PWD
The terminal print it back to me, just that?
Thanks.