Skip to content

Commit 639ef6c

Browse files
SlouchyButtonduzda
andauthored
Make readme more coherent with path examples, fix typos
Suggestions from code review Co-authored-by: David Hanina <[email protected]>
1 parent 24a5935 commit 639ef6c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Requires
44

55
### BuildRequires
6+
- make
67
- m4
78
- docbook-utils
89
- help2man
@@ -22,7 +23,7 @@
2223

2324
## Usage
2425
This script is used as a wrapper around PostgreSQL initialization and upgrade
25-
commands. It also parses init system service files and/or enviroment files to
26+
commands. It also parses init system service files and/or environment files to
2627
correctly find datadir based on current system.
2728

2829
### Initialization
@@ -34,7 +35,7 @@ use `./postgresql-setup --upgrade`.
3435

3536
If your distribution doesn't include this
3637
script with PostgreSQL and you are using this on your own, please update
37-
`etc/postgresql-setup/upgrade/postgresql.conf` to reflect your setup.
38+
`./etc/postgresql-setup/upgrade/postgresql.conf` to reflect your setup.
3839

3940
### Running without systemd/init system
4041
Your setup might not include systemd as the init system or include any
@@ -46,15 +47,15 @@ service file in preconfigured path directly. By default the path is
4647
If there is no systemd service file, or for whatever reason the script is unable
4748
to find valid PostgreSQL data directory, you can still provide PostgreSQL data
4849
directory path manually by using `--datadir` argument. For example when
49-
initializing new data directory use `./postgresql-setup --initdb --datadir=/my/path`.
50+
initializing new data directory use `postgresql-setup --initdb --datadir=/my/path`.
5051

5152
This feature is most beneficial when using this script inside container images,
5253
as it gives you the most control with least dependencies.
5354

5455
## Maintainer notes
55-
Be careful about paths. Your might need to tweak paths either in configure
56+
Be careful about paths. You might need to tweak paths either in the configure
5657
files, or in code based on your environment.
57-
- Line 49 of `/bin/postgresql-setup` in function `builddir_source ()` has to
58+
- Line 49 of `./bin/postgresql-setup.in` in function `builddir_source ()` has to
5859
be changed to location of your project otherwise you won't be able to run your
5960
build without full installation into system paths
6061
- For example line should be `. "/postgresql-setup/$file"` if your

0 commit comments

Comments
 (0)