reuse env variables for setting passwords
parent
a1a012de0a
commit
7aa466bdf5
10
README.md
10
README.md
|
@ -73,16 +73,16 @@ wget http://download.geonames.org/export/dump/timeZones.txt
|
|||
wget http://download.geonames.org/export/dump/admin1CodesASCII.txt
|
||||
wget http://download.geonames.org/export/dump/cities500.zip
|
||||
```
|
||||
* Generate secure passwords for the postgres user and selene user on the database
|
||||
```
|
||||
sudo -u postgres psql -c "ALTER USER postgres PASSWORD '<new password>'"
|
||||
sudo -u postgres psql -c "CREATE ROLE selene WITH LOGIN ENCRYPTED PASSWORD '<password>'"
|
||||
```
|
||||
* Add environment variables containing these passwords for the bootstrap script
|
||||
```
|
||||
export DB_PASSWORD=<selene user password>
|
||||
export POSTGRES_PASSWORD=<postgres user password>
|
||||
```
|
||||
* Generate secure passwords for the postgres user and selene user on the database
|
||||
```
|
||||
sudo -u postgres psql -c "ALTER USER postgres PASSWORD '$POSTGRES_PASSWORD'"
|
||||
sudo -u postgres psql -c "CREATE ROLE selene WITH LOGIN ENCRYPTED PASSWORD '$DB_PASSWORD'"
|
||||
```
|
||||
* Run the bootstrap script
|
||||
```
|
||||
cd /opt/selene/selene-backend/db/scripts
|
||||
|
|
Loading…
Reference in New Issue