Add FreeBSD documentation
This commit is contained in:
commit
749cedcc60
2 changed files with 18 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue