Files
Gitea-Action-Runner/root/DEBIAN/postrm
Cantibra dd94707aea
All checks were successful
Gitea Action Runner (Bookworm) / Gitea Action Runner [arm64] (push) Successful in 26s
Gitea Action Runner (Bookworm) / Gitea Action Runner [amd64] (push) Successful in 28s
Gitea Action Runner (Noble) / Gitea Action Runner [arm64] (push) Successful in 24s
Gitea Action Runner (Noble) / Gitea Action Runner [amd64] (push) Successful in 24s
Gitea Action Runner (Trixie) / Gitea Action Runner [arm64] (push) Successful in 25s
Gitea Action Runner (Trixie) / Gitea Action Runner [amd64] (push) Successful in 27s
Initialize Git Repository: 'Gitea-Action-Runner'
2026-01-26 06:10:15 +01:00

33 lines
868 B
Bash

#!/usr/bin/sh
set -e
set -u
if [ -d '/run/systemd/system' ]; then
/usr/bin/systemctl --system daemon-reload > '/dev/null' || \
/usr/bin/true
fi
case "${1}" in
remove)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper mask 'act_runner.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
;;
purge)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper purge 'act_runner.service' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'act_runner.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
if /usr/bin/getent passwd 'git' > '/dev/null'; then
/usr/sbin/deluser 'git' > '/dev/null' 2>&1
fi
if /usr/bin/getent group 'git' > '/dev/null'; then
/usr/sbin/deluser --group 'git' > '/dev/null' 2>&1
fi
;;
esac