You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assumes terminal bracketed paste mode is off, hence the ;\ everywhere
Without these, a sudo prompt eats later lines of a pasted block
Some files are created during the installation (in current dir)
Best to give yourself a temp dir
Make sure to delete this temp folder post-intall
cd;\
mkdir decider_temp ;\
cd decider_temp
Install Instructions
Add Yourself to Sudoers
Administrators are likely already in there
su
EDITOR=nano visudo
# Comment-block is editor view (Scroll Down)# user "damion" was added in this example# ## Allow root to run any commands anywhere# root ALL=(ALL) ALL# damion ALL=(ALL) ALLexit
Update Package Sources
Ensures package listing is up-to-date
yum check-update
Create Decider Service Account + Group
Dedicated no-home, no-login, shell-less user prevents app from accessing more
Our user uses a password, it is not a system account
SQLAlchemy connects to Postgres over ipv4 or ipv6 - which is 'host' type
Solves problem of (psycopg2.OperationalError) FATAL: Ident authentication failed for user "deciderdbuser"
# shows file location (already in next command)
sudo -i -u postgres psql -U postgres -c 'SHOW hba_file';\
sudo -i -u postgres nano /var/lib/pgsql/12/data/pg_hba.conf ;\
sudo -i -u postgres psql -c 'SELECT pg_reload_conf()';# EDIT TO MAKE WHEN EDITOR APPEARS (Scroll Down)## # TYPE DATABASE USER ADDRESS METHOD## # "local" is for Unix domain socket connections only# local all all peer# # IPv4 local connections:# host all all 127.0.0.1/32 ident <---CHANGE-TO- scram-sha-256 --|# # IPv6 local connections:# host all all ::1/128 ident <---CHANGE-TO- scram-sha-256 --|# # Allow replication connections from localhost, by a user with the# # replication privilege.# local replication all peer# host replication all 127.0.0.1/32 ident# host replication all ::1/128 ident