diff --git a/README.md b/README.md index c65fcf1..62794c7 100755 --- a/README.md +++ b/README.md @@ -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. diff --git a/db_init.sh b/db_init.sh new file mode 100644 index 0000000..e69de29 diff --git a/deps.sh b/deps.sh index 924954d..a70cf22 100755 --- a/deps.sh +++ b/deps.sh @@ -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 \