From 31d45e0e0bbb9ab8ddca47af4e2d1d2905c938b3 Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Wed, 21 Nov 2018 10:18:44 +0100 Subject: [PATCH] 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). --- support/doc/production.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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: -- 2.25.1