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 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/sojus
zfs create -o com.sun:auto-snapshot=false zv1/daten/Scans zfs create -o com.sun:auto-snapshot=false zv1/daten/Scans
zfs create -o setuid=off -o exec=off zv1/zyklon
``` ```
### Set dataset quota ### Set dataset quota
```shell ```shell

View File

@@ -3,6 +3,7 @@
## Setup using installer, create user root ## Setup using installer, create user root
```shell ```shell
vim /etc/gitea.conf
INSTALL_LOCK to false INSTALL_LOCK to false
``` ```
@@ -21,3 +22,16 @@ INSTALL_LOCK to false
- Email attribute: `mail` - Email attribute: `mail`
No Bind-DN and password needed! 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
```

View File

@@ -54,6 +54,7 @@ lxc:
- lxc.network.link = br1 - lxc.network.link = br1
- lxc.network.flags = up - lxc.network.flags = up
- lxc.pts = 6 - lxc.pts = 6
- lxc.mount.entry = /zv1/zyklon /var/lib/lxc/lxc-zyklon-01/rootfs/var/lib/gitea/ none bind,create=dir 0 0
- name: progress - name: progress
revision: "01" revision: "01"