Add ZFS mount for gitea, add doc

This commit is contained in:
Daniel A. Maierhofer
2018-11-04 14:06:43 +01:00
parent d4ae37d210
commit 021f431261
3 changed files with 16 additions and 0 deletions

View File

@@ -97,6 +97,7 @@ mv /var/lib/lxc/* /ssd/var/lxc/
zfs set mountpoint=/var/lib/lxc ssd/var/lxc
zfs create -o com.sun:auto-snapshot=false zv1/sojus
zfs create -o com.sun:auto-snapshot=false zv1/daten/Scans
zfs create -o setuid=off -o exec=off zv1/zyklon
```
### Set dataset quota
```shell

View File

@@ -3,6 +3,7 @@
## Setup using installer, create user root
```shell
vim /etc/gitea.conf
INSTALL_LOCK to false
```
@@ -21,3 +22,16 @@ INSTALL_LOCK to false
- Email attribute: `mail`
No Bind-DN and password needed!
## Create backup dump to file
```shell
cd /var/lib/gitea/
sudo -u _gitea gitea dump -c /etc/gitea.conf
```
## Reset root password
```shell
cd /var/lib/gitea/
sudo -u _gitea gitea admin change-password --config /etc/gitea.conf -u root -p pw
```