From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Wed, 21 Nov 2018 09:18:44 +0000 (+0100) Subject: Improve FreeBSD setup instructions X-Git-Tag: v1.1.0-rc.1~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=31d45e0e0bbb9ab8ddca47af4e2d1d2905c938b3;p=oweals%2Fpeertube.git 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). --- diff --git a/support/doc/production.md b/support/doc/production.md index 35c7de3b5..16efe17c4 100644 --- a/support/doc/production.md +++ b/support/doc/production.md @@ -185,9 +185,8 @@ $ sudo journalctl -feu peertube 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 chmod +x /usr/local/etc/rc.d/peertube -$ sudo echo peertube_enable="YES" >> /etc/rc.conf +$ sudo install -m 0555 /var/www/peertube/peertube-latest/support/freebsd/peertube /usr/local/etc/rc.d/ +$ sudo sysrc peertube_enable="YES" ``` Run: