diff options
author | Frank Sträter <frankstrater@gmail.com> | 2021-07-16 15:39:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-16 15:39:09 +0200 |
commit | 39072b2f6ae04d2037ef2cb678ce9c352a370278 (patch) | |
tree | f3b9e5363f457705586da49a7d6a2c16622afce0 | |
parent | a3f45a2ab3cadf0946f06a0539993b828becd516 (diff) | |
download | PeerTube-39072b2f6ae04d2037ef2cb678ce9c352a370278.tar.gz PeerTube-39072b2f6ae04d2037ef2cb678ce9c352a370278.tar.zst PeerTube-39072b2f6ae04d2037ef2cb678ce9c352a370278.zip |
Postgresql-setup init option for auth-host (#4253)
* Set postgresql password authentication for host
* Update postgresql-setup obsoleted argument syntax for initdb
-rw-r--r-- | support/doc/dependencies.md | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/support/doc/dependencies.md b/support/doc/dependencies.md index cb344d2d7..8ea0c047d 100644 --- a/support/doc/dependencies.md +++ b/support/doc/dependencies.md | |||
@@ -101,7 +101,7 @@ sudo -H -u peertube CC=/opt/rh/devtoolset-7/root/usr/bin/gcc CXX=/opt/rh/devtool | |||
101 | 6. Initialize the PostgreSQL database: | 101 | 6. Initialize the PostgreSQL database: |
102 | 102 | ||
103 | ``` | 103 | ``` |
104 | sudo postgresql-setup initdb | 104 | sudo PGSETUP_INITDB_OPTIONS='--auth-host=md5' postgresql-setup --initdb --unit postgresql |
105 | ``` | 105 | ``` |
106 | 106 | ||
107 | Now that dependencies are installed, before running PeerTube you should enable and start PostgreSQL and Redis: | 107 | Now that dependencies are installed, before running PeerTube you should enable and start PostgreSQL and Redis: |
@@ -141,7 +141,7 @@ sudo ln -s /usr/bin/python3 /usr/bin/python | |||
141 | 6. Initialize the PostgreSQL database: | 141 | 6. Initialize the PostgreSQL database: |
142 | 142 | ||
143 | ``` | 143 | ``` |
144 | sudo postgresql-setup initdb | 144 | sudo PGSETUP_INITDB_OPTIONS='--auth-host=md5' postgresql-setup --initdb --unit postgresql |
145 | ``` | 145 | ``` |
146 | 146 | ||
147 | Now that dependencies are installed, before running PeerTube you should enable and start PostgreSQL and Redis: | 147 | Now that dependencies are installed, before running PeerTube you should enable and start PostgreSQL and Redis: |
@@ -188,7 +188,7 @@ This is necessary because `ffmpeg` is not in the Fedora repos. | |||
188 | 7. Run: | 188 | 7. Run: |
189 | 189 | ||
190 | ``` | 190 | ``` |
191 | sudo dnf install nginx ffmpeg postgresql-server postgresql-contrib openssl gcc-c++ make redis git vim oidentd | 191 | sudo dnf install nginx ffmpeg postgresql-server postgresql-contrib openssl gcc-c++ make redis git vim |
192 | ffmpeg -version # Should be >= 4.1 | 192 | ffmpeg -version # Should be >= 4.1 |
193 | g++ -v # Should be >= 5.x | 193 | g++ -v # Should be >= 5.x |
194 | ``` | 194 | ``` |
@@ -208,7 +208,7 @@ _from [PostgreSQL documentation](https://www.postgresql.org/download/linux/redha | |||
208 | 208 | ||
209 | ``` | 209 | ``` |
210 | # PostgreSQL | 210 | # PostgreSQL |
211 | sudo postgresql-setup initdb | 211 | sudo PGSETUP_INITDB_OPTIONS='--auth-host=md5' postgresql-setup --initdb --unit postgresql |
212 | sudo systemctl enable postgresql.service | 212 | sudo systemctl enable postgresql.service |
213 | sudo systemctl start postgresql.service | 213 | sudo systemctl start postgresql.service |
214 | # Nginx | 214 | # Nginx |
@@ -217,9 +217,6 @@ sudo systemctl start nginx.service | |||
217 | # Redis | 217 | # Redis |
218 | sudo systemctl enable redis.service | 218 | sudo systemctl enable redis.service |
219 | sudo systemctl start redis.service | 219 | sudo systemctl start redis.service |
220 | # oidentd | ||
221 | sudo systemctl enable oidentd.service | ||
222 | sudo systemctl start oidentd.service | ||
223 | ``` | 220 | ``` |
224 | 221 | ||
225 | 10. Firewall | 222 | 10. Firewall |