diff --git a/README.MD b/README.MD index 164d15f..e90bdb3 100644 --- a/README.MD +++ b/README.MD @@ -25,7 +25,7 @@ debmaker_chroot cache/joplin - [adguardhome](#adguardhome) ([site](https://adguard.com/fr/adguard-home/overview.html)) ([src](https://github.com/AdguardTeam/AdguardHome)) - [authelia](#authelia) ([site](https://www.authelia.com/)) ([src](https://github.com/authelia/authelia)) - - [element-web](#element-web) ([site](https://element.io/)) ([src]()) + - [element-web](#element-web) ([site](https://element.io/)) ([src](https://github.com/vector-im/element-web)) - [gitea](#gitea) ([site](https://gitea.io)) ([src](https://github.com/go-gitea/gitea/)) - [gotify](#gotify) ([site](https://gotify.net/)) ([src](https://github.com/gotify)) - [grocy](#grocy) ([site](https://grocy.info/)) ([src](https://github.com/grocy/grocy)) @@ -81,6 +81,21 @@ a2ensite element-web systemctl restart apache2 ``` +#### gitea + +```bash +apt install -y wget ca-certificates +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 + +``` #### gotify ```bash diff --git a/ressources/gitea/gitea b/ressources/gitea/gitea index 9107705..1e90ec0 100755 --- a/ressources/gitea/gitea +++ b/ressources/gitea/gitea @@ -1,7 +1,7 @@ #!/bin/bash VERSION=1.16.3 -RELEASE=1 +RELEASE=2 [ -e ./lib/function.sh ] && source ./lib/function.sh @@ -38,7 +38,7 @@ prebuild(){ build() { cd /tmp/${APP}/ PATH=$PATH:/usr/local/go/bin - make + TAGS="bindata sqlite sqlite_unlock_notify" make build } makedeb(){ diff --git a/ressources/gitea/rootfs/etc/systemd/system/gitea.service b/ressources/gitea/rootfs/etc/systemd/system/gitea.service index ffd6d06..7035ffa 100644 --- a/ressources/gitea/rootfs/etc/systemd/system/gitea.service +++ b/ressources/gitea/rootfs/etc/systemd/system/gitea.service @@ -12,15 +12,15 @@ After=network.target #LimitNOFILE=65535 RestartSec=2s Type=simple -User=git -Group=git -WorkingDirectory=/var/lib/gitea/work_dir +User=gitea +Group=gitea +WorkingDirectory=/var/lib/gitea/ # If using Unix socket: tells systemd to create the /run/gitea folder, which will contain the gitea.sock file # (manually creating /run/gitea doesn't work, because it would not persist across reboots) #RuntimeDirectory=gitea ExecStart=/usr/bin/gitea web --config /etc/gitea/app.ini Restart=always -Environment=USER=git HOME=/var/lib/gitea/ GITEA_WORK_DIR=/var/lib/gitea/work_dir +Environment=USER=gitea HOME=/var/lib/gitea/ GITEA_WORK_DIR=/var/lib/gitea/ # If you install Git to directory prefix other than default PATH (which happens # for example if you install other versions of Git side-to-side with # distribution version), uncomment below line and add that prefix to PATH diff --git a/ressources/gitea/rootfs/var/lib/gitea/work_dir/.gitkeep b/ressources/gitea/rootfs/var/lib/gitea/.gitkeep similarity index 100% rename from ressources/gitea/rootfs/var/lib/gitea/work_dir/.gitkeep rename to ressources/gitea/rootfs/var/lib/gitea/.gitkeep