mirror of https://github.com/Chocobozzz/PeerTube
Add FreeBSD documentation
commit
749cedcc60
|
@ -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 New Issue