Updating README.md

This commit is contained in:
Noah L. Schrick 2022-04-26 19:36:30 -05:00
parent 3c99fcf13e
commit 3a6e65a2f2
3 changed files with 16 additions and 2 deletions

View File

@ -23,6 +23,20 @@ An example use of this is:
./db_manage.sh -d ag_gen
#### Add PSQL users and alter permissions
Log in to the Postgres user
sudo su postgres
Then connect to the PSQL terminal
psql
Now create the user and adjust permissions
CREATE USER ag_gen;
ALTER USER ag_gen WITH SUPERUSER;
ALTER USER ag_gen WITH login;
ALTER USER ag_gen WITH ENCRYPTED PASSWORD '8PZQc79NUZ3FjqSB';
Repeat, using root and your local user name in place of the ag gen user.
Note, if you change the password, be sure to change the passwords in the config.ini files.
## Building
This application uses CMake to build.

0
db_init.sh Normal file
View File

View File

@ -14,10 +14,10 @@ elif [[ $OS = 'linux' ]]; then
if hash pacman 2>/dev/null; then
sudo pacman -S cmake postgresql boost cppcheck clang doxygen graphviz libconfig openmpi
elif hash apt-get 2>/dev/null; then
sudo apt-get -y install libboost-graph-dev postgresql postgresql-contrib \
sudo apt-get -y install libboost-all-dev postgresql postgresql-contrib \
libpq-dev cppcheck clang valgrind doxygen graphviz cmake \
build-essential bison flex libssl-dev libconfig++-dev libyaml-cpp-dev \
openmpi
openmpi-bin libomp-dev
elif hash yum 2>/dev/null; then
sudo yum install cmake epel-release postgresql-devel boost-devel \
openssl-devel graphviz-devel bison-devel flex-devel cppcheck valgrind \