From 38ded86d9f94e0c7ce8a50a547835b3e811eb68d Mon Sep 17 00:00:00 2001 From: thomas Date: Fri, 4 Mar 2022 23:16:27 +0100 Subject: [PATCH] fix gitea --- README.MD | 2 -- ressources/authelia/authelia | 2 +- ressources/element-web/element-web | 2 +- ressources/gitea/gitea | 4 ++-- ressources/gitea/rootfs/DEBIAN/control | 1 + ressources/gitea/rootfs/DEBIAN/postinst | 1 + 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.MD b/README.MD index e90bdb3..0bc939e 100644 --- a/README.MD +++ b/README.MD @@ -89,8 +89,6 @@ wget -qO - https://deb.lgy.fr/install.sh | bash apt-get update apt-get install -y gitea -#Edit /etc/gitea/app.ini - systemctl enable --now gitea #configuration with http://:3000 diff --git a/ressources/authelia/authelia b/ressources/authelia/authelia index 770cef8..2a06c48 100755 --- a/ressources/authelia/authelia +++ b/ressources/authelia/authelia @@ -31,7 +31,7 @@ envinit() { prebuild(){ [ -e /tmp/git ] && rm -fr /tmp/git - [ -e /tmp/element-web ] || mkdir /tmp/${APP} + [ -e /tmp/${APP} ] || mkdir /tmp/${APP} git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/git cp -r /tmp/git/. /tmp/${APP} } diff --git a/ressources/element-web/element-web b/ressources/element-web/element-web index 555201b..51cbe92 100755 --- a/ressources/element-web/element-web +++ b/ressources/element-web/element-web @@ -31,7 +31,7 @@ envinit() { prebuild(){ [ -e /tmp/git ] && rm -fr /tmp/git - [ -e /tmp/element-web ] || mkdir /tmp/${APP} + [ -e /tmp/${APP} ] || mkdir /tmp/${APP} git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/git cp -r /tmp/git/. /tmp/${APP} } diff --git a/ressources/gitea/gitea b/ressources/gitea/gitea index 1e90ec0..eccf33c 100755 --- a/ressources/gitea/gitea +++ b/ressources/gitea/gitea @@ -1,7 +1,7 @@ #!/bin/bash VERSION=1.16.3 -RELEASE=2 +RELEASE=5 [ -e ./lib/function.sh ] && source ./lib/function.sh @@ -30,7 +30,7 @@ envinit() { prebuild(){ [ -e /tmp/git ] && rm -fr /tmp/git - [ -e /tmp/element-web ] || mkdir /tmp/${APP} + [ -e /tmp/${APP} ] || mkdir /tmp/${APP} git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/git cp -r /tmp/git/. /tmp/${APP} } diff --git a/ressources/gitea/rootfs/DEBIAN/control b/ressources/gitea/rootfs/DEBIAN/control index 4b40b3e..b12cbba 100644 --- a/ressources/gitea/rootfs/DEBIAN/control +++ b/ressources/gitea/rootfs/DEBIAN/control @@ -3,5 +3,6 @@ Version: %VERSION% Section: base Priority: optional Architecture: all +Depends: git Maintainer: Thomas Legay Description: gitea diff --git a/ressources/gitea/rootfs/DEBIAN/postinst b/ressources/gitea/rootfs/DEBIAN/postinst index 7c45414..b12b3bf 100755 --- a/ressources/gitea/rootfs/DEBIAN/postinst +++ b/ressources/gitea/rootfs/DEBIAN/postinst @@ -3,3 +3,4 @@ id gitea &> /dev/null || useradd gitea -r -s /bin/false -d /var/lib/gitea/ chown -R gitea:gitea /var/lib/gitea/ +chown gitea:gitea /etc/gitea/app.ini