1
0
Fork 0

Improve FreeBSD setup instructions

Use install(1) instead of cp(1) and chmod(1) to install
the service file. Also, use sysrc(8) to enable the PeerTube
service in rc.conf(5).
This commit is contained in:
Mateusz Piotrowski 2018-11-21 10:18:44 +01:00 committed by Rigel Kent
parent fc2ec87a8c
commit 31d45e0e0b
1 changed files with 2 additions and 3 deletions

View File

@ -185,9 +185,8 @@ $ sudo journalctl -feu peertube
On FreeBSD, copy the startup script and update rc.conf: On FreeBSD, copy the startup script and update rc.conf:
``` ```
$ sudo cp /var/www/peertube/peertube-latest/support/freebsd/peertube /usr/local/etc/rc.d/ $ sudo install -m 0555 /var/www/peertube/peertube-latest/support/freebsd/peertube /usr/local/etc/rc.d/
$ sudo chmod +x /usr/local/etc/rc.d/peertube $ sudo sysrc peertube_enable="YES"
$ sudo echo peertube_enable="YES" >> /etc/rc.conf
``` ```
Run: Run: