From 021f431261fcd206995ccbcb111480f2e4abb9e4 Mon Sep 17 00:00:00 2001 From: "Daniel A. Maierhofer" Date: Sun, 4 Nov 2018 14:06:43 +0100 Subject: [PATCH] Add ZFS mount for gitea, add doc --- doc/ariane.md | 1 + doc/gitea.md | 14 ++++++++++++++ host_vars/ariane | 1 + 3 files changed, 16 insertions(+) diff --git a/doc/ariane.md b/doc/ariane.md index 88adb9b..573aebe 100644 --- a/doc/ariane.md +++ b/doc/ariane.md @@ -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 diff --git a/doc/gitea.md b/doc/gitea.md index da43492..f61ddfd 100644 --- a/doc/gitea.md +++ b/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 +``` diff --git a/host_vars/ariane b/host_vars/ariane index 307a2a0..0d6d42a 100644 --- a/host_vars/ariane +++ b/host_vars/ariane @@ -54,6 +54,7 @@ lxc: - lxc.network.link = br1 - lxc.network.flags = up - 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 revision: "01"