Skip to content

Commit

Permalink
Update postgres initialization documentation (#139)
Browse files Browse the repository at this point in the history
* Update postgres initialization documentation

* Capitalize Debian in Readme
  • Loading branch information
timonegk authored Jan 4, 2020
1 parent 7991a41 commit 6b256db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ The following settings should probably be changed:
+ The database settings
+ The UPLOAD\_FS\_GROUP to the id of the group that should access and create the uploaded images

For the database, postgresql is used. Install it by running `sudo apt install postgresql`
For the database, postgresql is used. Install it by running `sudo apt install postgresql` on Debian based operating systems. A default database cluster is automatically initialized.

Initialize the database cluster with `sudo -iu postgres initdb --locale en_US.UTF-8 -D '/var/lib/postgres/data'`
Other systems may require different commands to install the package and the database cluster may
have to be initialized manually (e.g. using `sudo -iu postgres initdb --locale en_US.UTF-8 -D '/var/lib/postgres/data'`).

To start the postgresql server, run `sudo systemctl start postgresql.service`. If the server should always be started on boot, run `sudo systemctl enable postgresql.service`.

Expand Down

0 comments on commit 6b256db

Please sign in to comment.