From ec0893d90ec1e43c1b2abc8bd1f05ab5d92f7d66 Mon Sep 17 00:00:00 2001 From: Miguel Muniz Date: Tue, 23 Jul 2024 15:07:30 -0700 Subject: [PATCH 1/4] refrence fix for testing --- ct/gitea.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/gitea.sh b/ct/gitea.sh index 4888b614..6436e0e9 100644 --- a/ct/gitea.sh +++ b/ct/gitea.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/Rogue-King/Proxmox/main/misc/build.func) +source <(curl -s https://raw.githubusercontent.com/Rogue-King/Proxmox/gitea/misc/build.func) # Copyright (c) 2021-2024 tteck # Author: tteck (tteckster) # Co-author: Rogue-King From f4ba569f7e706f94c3a93b689238306ba3a67763 Mon Sep 17 00:00:00 2001 From: Miguel Muniz Date: Tue, 23 Jul 2024 15:27:22 -0700 Subject: [PATCH 2/4] silencing user creation --- install/gitea-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/gitea-install.sh b/install/gitea-install.sh index 96800a34..c5eaa237 100644 --- a/install/gitea-install.sh +++ b/install/gitea-install.sh @@ -29,7 +29,7 @@ chmod +x /usr/local/bin/gitea msg_info "Installed Gitea" msg_info "Creating Gitea user" -adduser --system --group --disabled-password --home /etc/gitea gitea +adduser --system --group --disabled-password --home /etc/gitea gitea > /dev/null 2>&1 msg_info "Creating directory structure" mkdir -p /var/lib/gitea/{custom,data,log} From a6d31d03cb2ac8cbff553b7e6edbdcae6d27d03c Mon Sep 17 00:00:00 2001 From: Miguel Muniz Date: Tue, 23 Jul 2024 21:24:12 -0700 Subject: [PATCH 3/4] added comments to systemd service file --- install/gitea-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/gitea-install.sh b/install/gitea-install.sh index c5eaa237..9d5d657b 100644 --- a/install/gitea-install.sh +++ b/install/gitea-install.sh @@ -46,11 +46,12 @@ After=syslog.target After=network.target [Service] +# Uncomment notify and watchdog if you want to use them # Uncomment the next line if you have repos with lots of files and get a HTTP 500 error because of that # LimitNOFILE=524288:524288 RestartSec=2s -#Type=notify Type=simple +#Type=notify User=gitea Group=gitea #The mount point we added to the container From e6985a15c2f66a99a370dab439a743d1514f5cb0 Mon Sep 17 00:00:00 2001 From: Miguel Muniz Date: Tue, 23 Jul 2024 21:55:46 -0700 Subject: [PATCH 4/4] small changes --- install/gitea-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/gitea-install.sh b/install/gitea-install.sh index 9d5d657b..bf3b60cf 100644 --- a/install/gitea-install.sh +++ b/install/gitea-install.sh @@ -23,13 +23,13 @@ msg_ok "Installed Dependencies" msg_info "Installing Gitea" RELEASE=$(wget -q https://github.com/go-gitea/gitea/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) VERSION=${RELEASE#v} -wget -q https://github.com/go-gitea/gitea/releases/download/$RELEASE/gitea-$VERSION-linux-amd64 +$STD wget -q https://github.com/go-gitea/gitea/releases/download/$RELEASE/gitea-$VERSION-linux-amd64 mv gitea* /usr/local/bin/gitea chmod +x /usr/local/bin/gitea msg_info "Installed Gitea" msg_info "Creating Gitea user" -adduser --system --group --disabled-password --home /etc/gitea gitea > /dev/null 2>&1 +adduser --system --group --disabled-password --home /etc/gitea gitea > /dev/null msg_info "Creating directory structure" mkdir -p /var/lib/gitea/{custom,data,log}