Release Gitea 1.23.7

This commit is contained in:
2025-05-04 17:48:06 +02:00
parent b608d84167
commit c0dd39b24b
35 changed files with 8504 additions and 0 deletions

2812
shared/app.ini Normal file

File diff suppressed because it is too large Load Diff

2
shared/conffiles Normal file
View File

@@ -0,0 +1,2 @@
/etc/systemd/system/gitea.service
/etc/gitea/app.ini

19
shared/gitea.service Normal file
View File

@@ -0,0 +1,19 @@
[Unit]
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
Requires=mariadb.service
[Service]
RestartSec=2s
Type=simple
User=gitea
Group=gitea
WorkingDirectory=/opt/gitea/
ExecStart=/opt/gitea/bin/gitea web --config /etc/gitea/app.ini
Restart=always
Environment="GITEA_WORK_DIR=/opt/gitea/gitea"
Environment="GITEA_CUSTOM=/opt/gitea/custom"
[Install]
WantedBy=multi-user.target

27
shared/postinst Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/sh
set -e
# Ensure Gitea user and group exist
if ! id gitea >/dev/null 2>&1; then
adduser --system --group --home /opt/gitea gitea
fi
# Ensure config directory exists
mkdir -p /etc/gitea
chown -R gitea:gitea /etc/gitea
chmod 750 /etc/gitea
# Copy default config if not present
if [ ! -f /etc/gitea/app.ini ]; then
echo "Creating default /etc/gitea/app.ini"
cp /usr/share/gitea/defaults/app.ini /etc/gitea/app.ini
chown gitea:gitea /etc/gitea/app.ini
chmod 640 /etc/gitea/app.ini
fi
# Reload systemd
systemctl daemon-reload
# Enable and start Gitea service
systemctl enable gitea.service
systemctl start gitea.service

7
shared/prerm Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
set -e
# Stop the Gitea service before updating/removal
systemctl stop gitea || true
exit 0