mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
fixes
This commit is contained in:
parent
cf6e2726e7
commit
fc15af5693
18 changed files with 1384 additions and 2 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
# Copyright (c) 2021-2024 tteck
|
||||
# Author: tteck (tteckster)
|
||||
# Co-author: Rogue-King
|
||||
# Base Script: apalrd (alpard.net)
|
||||
# License: MIT
|
||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
||||
|
||||
|
@ -16,15 +18,16 @@ update_os
|
|||
msg_info "Installing Dependencies"
|
||||
$STD apt-get install -y git
|
||||
$STD apt-get install -y sudo
|
||||
$STD apt-get install -y mc
|
||||
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
|
||||
#wget https://dl.gitea.com/gitea/1.20.3/gitea-1.20.3-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
|
||||
|
@ -35,7 +38,6 @@ chown -R gitea:gitea /var/lib/gitea/
|
|||
chmod -R 750 /var/lib/gitea/
|
||||
chown root:gitea /etc/gitea
|
||||
chmod 770 /etc/gitea
|
||||
msg_ok "Installed Gitea"
|
||||
|
||||
cat <<EOF >/etc/systemd/system/gitea.service
|
||||
[Unit]
|
||||
|
@ -65,6 +67,7 @@ AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl daemon-reload
|
||||
systemctl enable -q --now gitea
|
||||
msg_ok "Created Service"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue