#!/bin/sh
set -e

# Ensure systemd is aware of the new service file
systemctl daemon-reload

# Enable and start Gitea service
systemctl enable gitea
systemctl restart gitea || true

exit 0