From 667ac4af836927e997891e8491bf158d57bb0f93 Mon Sep 17 00:00:00 2001 From: Rogue-King Date: Thu, 25 Jul 2024 11:25:20 -0700 Subject: [PATCH] reformated install process and put them all under "installing Gitea" --- install/gitea-install.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/install/gitea-install.sh b/install/gitea-install.sh index ddc3dddc..a58d44e7 100644 --- a/install/gitea-install.sh +++ b/install/gitea-install.sh @@ -23,20 +23,16 @@ 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 | sed 's/^v//') -$STD wget -q https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-linux-amd64 +wget -q https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-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 - -msg_info "Creating directory structure" mkdir -p /var/lib/gitea/{custom,data,log} chown -R gitea:gitea /var/lib/gitea/ chmod -R 750 /var/lib/gitea/ chown root:gitea /etc/gitea chmod 770 /etc/gitea +msg_info "Installed Gitea" msg_info "Creating Service" cat </etc/systemd/system/gitea.service