3
3
## Requires
4
4
5
5
### BuildRequires
6
+ - make
6
7
- m4
7
8
- docbook-utils
8
9
- help2man
22
23
23
24
## Usage
24
25
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
26
27
correctly find datadir based on current system.
27
28
28
29
### Initialization
@@ -34,7 +35,7 @@ use `./postgresql-setup --upgrade`.
34
35
35
36
If your distribution doesn't include this
36
37
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.
38
39
39
40
### Running without systemd/init system
40
41
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
46
47
If there is no systemd service file, or for whatever reason the script is unable
47
48
to find valid PostgreSQL data directory, you can still provide PostgreSQL data
48
49
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 ` .
50
51
51
52
This feature is most beneficial when using this script inside container images,
52
53
as it gives you the most control with least dependencies.
53
54
54
55
## 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
56
57
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
58
59
be changed to location of your project otherwise you won't be able to run your
59
60
build without full installation into system paths
60
61
- For example line should be ` . "/postgresql-setup/$file" ` if your
0 commit comments