Update startup.sh

This commit is contained in:
2025-09-11 12:28:26 -07:00
parent b66d44160f
commit 2877077c2d

View File

@@ -1,10 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
dnf -y update
dnf -y install git wget curl openssl sqlite firewalld
systemctl enable --now firewalld
firewall-cmd --permanent --add-port=3000/tcp
firewall-cmd --reload
apt-get update
apt-get install -y wget curl openssl git sqlite3
LATEST_GITEA=$(curl -s https://dl.gitea.io/gitea/ | grep -Eo 'href="[0-9]+\.[0-9]+\.[0-9]+/' | sed 's/href="//;s/\///' | sort -V | tail -1)
wget -qO /usr/local/bin/gitea "https://dl.gitea.io/gitea/${LATEST_GITEA}/gitea-${LATEST_GITEA}-linux-amd64"
chmod +x /usr/local/bin/gitea
@@ -66,4 +63,3 @@ Restart=always
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable act-runner