Add FreeBSD documentation
This commit is contained in:
commit
749cedcc60
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Strict mode
|
# Strict mode
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Backup database
|
# 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
|
mkdir -p /var/www/peertube/backup
|
||||||
pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH"
|
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
|
$ 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
|
### Administrator
|
||||||
|
|
||||||
The administrator password is automatically generated and can be found in the
|
The administrator password is automatically generated and can be found in the
|
||||||
|
|
Loading…
Reference in New Issue