mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-08-17 09:20:26 +03:00
Make instructions work on more platforms
The `--sort` argument to ls is a linuxism (more precisely a gnu-coreutilsism). I get this output when attempting these instructions on FreeBSD (13): $ diff -u "$(ls --sort=t | head -2 | tail -1)/config/production.yaml.example" "$(ls --sort=t | head -1)/config/production.yaml.example" ls: unrecognized option `--sort=t' usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuvwxy1,] [--color=when] [-D format] [file ...] ls: unrecognized option `--sort=t' usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuvwxy1,] [--color=when] [-D format] [file ...] diff: /config/production.yaml.example: No such file or directory Changing `--sort=t` to the POSIX-compliant `-t` makes this work as expected and operates just fine on Linux (tested on Fedora Linux 39). Fixes #6412
This commit is contained in:
parent
9b5c7a8dc6
commit
e5a44a94b6
@ -361,7 +361,7 @@ Check for configuration changes, and report them in your `config/production.yaml
|
||||
|
||||
```bash
|
||||
cd /var/www/peertube/versions
|
||||
diff -u "$(ls --sort=t | head -2 | tail -1)/config/production.yaml.example" "$(ls --sort=t | head -1)/config/production.yaml.example"
|
||||
diff -u "$(ls -t | head -2 | tail -1)/config/production.yaml.example" "$(ls -t | head -1)/config/production.yaml.example"
|
||||
```
|
||||
|
||||
### Update nginx configuration
|
||||
@ -370,7 +370,7 @@ Check changes in nginx configuration:
|
||||
|
||||
```bash
|
||||
cd /var/www/peertube/versions
|
||||
diff -u "$(ls --sort=t | head -2 | tail -1)/support/nginx/peertube" "$(ls --sort=t | head -1)/support/nginx/peertube"
|
||||
diff -u "$(ls -t | head -2 | tail -1)/support/nginx/peertube" "$(ls -t | head -1)/support/nginx/peertube"
|
||||
```
|
||||
|
||||
### Update systemd service
|
||||
@ -379,7 +379,7 @@ Check changes in systemd configuration:
|
||||
|
||||
```bash
|
||||
cd /var/www/peertube/versions
|
||||
diff -u "$(ls --sort=t | head -2 | tail -1)/support/systemd/peertube.service" "$(ls --sort=t | head -1)/support/systemd/peertube.service"
|
||||
diff -u "$(ls -t | head -2 | tail -1)/support/systemd/peertube.service" "$(ls -t | head -1)/support/systemd/peertube.service"
|
||||
```
|
||||
|
||||
### Restart PeerTube
|
||||
|
Loading…
Reference in New Issue
Block a user