diff options
-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``: |