aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <chocobozzz@framasoft.org>2018-03-20 08:21:15 +0100
committerChocobozzz <chocobozzz@framasoft.org>2018-03-20 08:21:15 +0100
commit749cedcc6043f98e9182f4e2246e90538d03ffa5 (patch)
tree57990331c8a6759ba4a65890f70b11ebafb056a6
parent0960af624e24430238277d0011706e97eeee8c77 (diff)
parent6d55bd21a929eb5558dc1dfc3ae6857136496355 (diff)
downloadPeerTube-749cedcc6043f98e9182f4e2246e90538d03ffa5.tar.gz
PeerTube-749cedcc6043f98e9182f4e2246e90538d03ffa5.tar.zst
PeerTube-749cedcc6043f98e9182f4e2246e90538d03ffa5.zip
Add FreeBSD documentation
-rwxr-xr-xscripts/upgrade.sh4
-rw-r--r--support/doc/production.md16
2 files changed, 18 insertions, 2 deletions
diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh
index 9baf50932..bd90ce560 100755
--- a/scripts/upgrade.sh
+++ b/scripts/upgrade.sh
@@ -1,10 +1,10 @@
1#!/bin/bash 1#!/usr/bin/env bash
2 2
3# Strict mode 3# Strict mode
4set -e 4set -e
5 5
6# Backup database 6# Backup database
7SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date -Im).bak" 7SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date +\"%Y%m%d-%H%M\").bak"
8mkdir -p /var/www/peertube/backup 8mkdir -p /var/www/peertube/backup
9pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH" 9pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH"
10 10
diff --git a/support/doc/production.md b/support/doc/production.md
index db0c8d99f..5c21ab772 100644
--- a/support/doc/production.md
+++ b/support/doc/production.md
@@ -143,6 +143,22 @@ $ sudo systemctl start peertube
143$ sudo journalctl -feu peertube 143$ sudo journalctl -feu peertube
144``` 144```
145 145
146### FreeBSD
147
148Copy the startup script and update rc.conf:
149
150```
151$ sudo cp /var/www/peertube/peertube-latest/support/freebsd/peertube /usr/local/etc/rc.d/
152$ sudo chmod +x /usr/local/etc/rc.d/peertube
153$ sudo echo peertube_enable="YES" >> /etc/rc.conf
154```
155
156#### Run
157
158```
159$ sudo service peertube start
160```
161
146### Administrator 162### Administrator
147 163
148The administrator password is automatically generated and can be found in the 164The administrator password is automatically generated and can be found in the