3 Commits

Author SHA1 Message Date
0ebd1b0229 ci: change repo owner
All checks were successful
Continuous Delivery / build_n_upload (push) Successful in 21s
2026-04-19 12:46:05 +02:00
a6fb133216 fix: remove path for binaries in unit files
Some checks failed
Continuous Delivery / build_n_upload (push) Has been cancelled
2026-04-12 17:59:01 +02:00
fc6ce6f472 fix: stop services on postun scriptlet
Some checks failed
Continuous Delivery / build_n_upload (push) Has been cancelled
2026-04-12 17:01:55 +02:00
4 changed files with 10 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ NAME = netoik-git
VERSION = $(shell git describe --abbrev=0) VERSION = $(shell git describe --abbrev=0)
RELEASE = $(shell git rev-parse --short HEAD) RELEASE = $(shell git rev-parse --short HEAD)
ARCH = noarch ARCH = noarch
OWNER = samuel OWNER = netoik
SUMMARY = "Netoïk Git server" SUMMARY = "Netoïk Git server"
LICENSE = "MIT" LICENSE = "MIT"
URL = "https://git.netoik.io/$(OWNER)/$(NAME)" URL = "https://git.netoik.io/$(OWNER)/$(NAME)"

View File

@@ -4,8 +4,8 @@ Documentation=https://gitea.com/gitea/act_runner
After=gitea.service After=gitea.service
[Service] [Service]
ExecStart=/usr/sbin/act_runner daemon ExecStart=act_runner daemon
ExecReload=/bin/kill -s HUP $MAINPID ExecReload=kill -s HUP $MAINPID
WorkingDirectory=/var/lib/actrunner%i WorkingDirectory=/var/lib/actrunner%i
TimeoutSec=0 TimeoutSec=0
RestartSec=10 RestartSec=10

View File

@@ -9,7 +9,7 @@ User=gitea
Group=gitea Group=gitea
WorkingDirectory=/var/lib/gitea/ WorkingDirectory=/var/lib/gitea/
Environment=GITEA_WORK_DIR=/var/lib/gitea Environment=GITEA_WORK_DIR=/var/lib/gitea
ExecStart=/usr/sbin/gitea_web_notify ExecStart=gitea_web_notify
Restart=always Restart=always
NotifyAccess=all NotifyAccess=all

View File

@@ -111,6 +111,12 @@ done
# Display commands and exit on error # Display commands and exit on error
set -xe set -xe
# Stop services
systemctl stop gitea.service
for i in $(seq 1 4); do
systemctl stop actrunner@$i
done
# If uninstalling, then delete users and db # If uninstalling, then delete users and db
if [ $1 == 0 ]; then if [ $1 == 0 ]; then
# Remove gitea user if existing # Remove gitea user if existing