Platoniq / decidim-install

A step-by-step guide to install Decidim on a production site
https://platoniq.github.io/decidim-install/
GNU Affero General Public License v3.0
54 stars 35 forks source link

sudo -u postgres psql -c "CREATE USER decidim_app WITH SUPERUSER CREATEDB NOCREATEROLE PASSWORD 'Password1'" #21

Closed polnetwork closed 5 years ago

polnetwork commented 5 years ago

If you are logged as root thais command fails: sudo -u postgres psql -c "CREATE USER decidim_app WITH SUPERUSER CREATEDB NOCREATEROLE PASSWORD 'Password1'"

Rsponse: could not change directory to "/root": Permission denied CREATE ROLE

Is it recomended not to install Decidim as root?

Thank's for all

polnetwork commented 5 years ago

Ok I see now you mentioned to create a user. "From now on, I'll assume you have created a non-root user (with sudo capabilities) named decidim (but use whatever you want) and you are logged into your machine, so you will see a bash prompt similar to this:" Thank's for all