Add ZFS mount for gitea, add doc
This commit is contained in:
@@ -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
|
||||
|
||||
14
doc/gitea.md
14
doc/gitea.md
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user