mirror of
https://github.com/ascet-tomsk/gitea-setup.git
synced 2026-02-16 14:01:13 +03:00
first commit
This commit is contained in:
14
2.1-setup.sh
Normal file
14
2.1-setup.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 2.1 Скачивание Gitea
|
||||
|
||||
# Получаем последнюю версию
|
||||
GITEA_VERSION=$(curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
|
||||
echo "Устанавливаем Gitea версии: $GITEA_VERSION"
|
||||
|
||||
# Скачиваем
|
||||
sudo wget -O /usr/local/bin/gitea \
|
||||
"https://github.com/go-gitea/gitea/releases/download/${GITEA_VERSION}/gitea-${GITEA_VERSION:1}-linux-amd64"
|
||||
|
||||
# Права на выполнение
|
||||
sudo chmod +x /usr/local/bin/gitea
|
||||
Reference in New Issue
Block a user