diff options
author | Axel Viala <axel.viala@darnuria.eu> | 2021-03-29 15:49:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-29 15:49:59 +0200 |
commit | 02d6226abc53840b046060d28e8a13c568613db1 (patch) | |
tree | 87f90c80c3074fcdcc109922e617f1af90b4cc8e /support/doc/dependencies.md | |
parent | cf3c36247d623ddf1c64e755046d7d807f578a83 (diff) | |
download | PeerTube-02d6226abc53840b046060d28e8a13c568613db1.tar.gz PeerTube-02d6226abc53840b046060d28e8a13c568613db1.tar.zst PeerTube-02d6226abc53840b046060d28e8a13c568613db1.zip |
update dependencies.md for macOSX (#3899)
add instructions regarding postgresql and bash user/version required for a proper MacOSX install of PeerTube
Co-authored-by: Rozen10 <58482276+Rozen10@users.noreply.github.com>
Co-authored-by: Rigel Kent <par@rigelk.eu>
Diffstat (limited to 'support/doc/dependencies.md')
-rw-r--r-- | support/doc/dependencies.md | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/support/doc/dependencies.md b/support/doc/dependencies.md index 0fdbdfc82..9666d72af 100644 --- a/support/doc/dependencies.md +++ b/support/doc/dependencies.md | |||
@@ -281,17 +281,34 @@ service nginx start | |||
281 | 281 | ||
282 | 1. Add the packages: | 282 | 1. Add the packages: |
283 | 283 | ||
284 | ```sh | ||
285 | brew install bash ffmpeg nginx postgresql openssl gcc make redis git yarn | ||
284 | ``` | 286 | ``` |
285 | brew install ffmpeg nginx postgresql openssl gcc make redis git yarn | 287 | |
288 | You may need to update your default version of bash. | ||
289 | |||
290 | **How to change your default shell** | ||
291 | |||
292 | ```sh | ||
293 | which -a bash # Check where bash is installed | ||
294 | bash --version # You need a version at least as recent as 4.0 | ||
295 | sudo vim /etc/shells # Add in this file : /usr/local/bin/bash | ||
296 | chsh -s /usr/local/bin/bash # To set the brew-installed bash as default bash | ||
286 | ``` | 297 | ``` |
287 | 298 | ||
299 | In a new shell, type `bash --version` to assert your changes took effect and | ||
300 | correctly modified your default bash version. | ||
301 | |||
288 | 2. Run the services: | 302 | 2. Run the services: |
289 | 303 | ||
290 | ``` | 304 | ```sh |
291 | brew services run postgresql | 305 | brew services run postgresql |
292 | brew services run redis | 306 | brew services run redis |
293 | ``` | 307 | ``` |
294 | 308 | ||
309 | On macOS, the `postgresql` user can be `_postgres` instead of `postgres`. | ||
310 | If `sudo -u postgres createuser -P peertube` gives you an error, you can try `sudo -u _postgres createuser -U peertube`. | ||
311 | |||
295 | ## Gentoo | 312 | ## Gentoo |
296 | 313 | ||
297 | 1. Add this to ``/etc/portage/sets/peertube``: | 314 | 1. Add this to ``/etc/portage/sets/peertube``: |