1
0
Fork 0

Add FreeBSD documentation

This commit is contained in:
Chocobozzz 2018-03-20 08:21:15 +01:00
commit 749cedcc60
2 changed files with 18 additions and 2 deletions

View file

@ -1,10 +1,10 @@
#!/bin/bash
#!/usr/bin/env bash
# Strict mode
set -e
# Backup database
SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date -Im).bak"
SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date +\"%Y%m%d-%H%M\").bak"
mkdir -p /var/www/peertube/backup
pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH"

View file

@ -143,6 +143,22 @@ $ sudo systemctl start peertube
$ sudo journalctl -feu peertube
```
### 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
```
#### Run
```
$ sudo service peertube start
```
### Administrator
The administrator password is automatically generated and can be found in the