From daa896894dc796f3a8b5fa98469af3d369f2bb4c Mon Sep 17 00:00:00 2001 From: indiscreettuna Date: Thu, 8 Aug 2024 18:36:34 +1000 Subject: [PATCH] Allow git clone over SSH (#3490) --- 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 2ed5e751..02c8310e 100644 --- a/install/gitea-install.sh +++ b/install/gitea-install.sh @@ -27,12 +27,13 @@ RELEASE=$(wget -q https://github.com/go-gitea/gitea/releases/latest -O - | grep 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 -adduser --system --group --disabled-password --home /etc/gitea gitea > /dev/null +adduser --system --group --disabled-password --shell /bin/bash --home /etc/gitea gitea > /dev/null 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 +sudo -u gitea ln -s /var/lib/gitea/data/.ssh/ /etc/gitea/.ssh msg_ok "Installed Gitea" msg_info "Creating Service"