Update 02-getting-started.md

Older versions which use createlang are not supported anzmore
This commit is contained in:
Jean Flach 2018-04-19 17:46:32 +02:00 committed by GitHub
parent 2b61e19bfc
commit 1f91b44788
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -714,13 +714,10 @@ Set up a PostgreSQL database for Icinga 2:
# cd /tmp # cd /tmp
# sudo -u postgres psql -c "CREATE ROLE icinga WITH LOGIN PASSWORD 'icinga'" # sudo -u postgres psql -c "CREATE ROLE icinga WITH LOGIN PASSWORD 'icinga'"
# sudo -u postgres createdb -O icinga -E UTF8 icinga # sudo -u postgres createdb -O icinga -E UTF8 icinga
# sudo -u postgres createlang plpgsql icinga
> **Note** > **Note**
> >
> When using PostgreSQL 9.x or higher, the `createlang` command can be omitted. > It is assumed here that your locale is set to utf-8, you may run into problems otherwise.
> Also it is assumed here that your locale is set to utf-8, you may run into
> problems otherwise.
Locate your pg\_hba.conf (Debian: `/etc/postgresql/*/main/pg_hba.conf`, Locate your pg\_hba.conf (Debian: `/etc/postgresql/*/main/pg_hba.conf`,
RHEL/SUSE: `/var/lib/pgsql/data/pg_hba.conf`), add the icinga user with md5 RHEL/SUSE: `/var/lib/pgsql/data/pg_hba.conf`), add the icinga user with md5