Files
Repository/root/DEBIAN/postrm
Cantibra a12f643308
All checks were successful
Repository (Bookworm) / Repository [arm64] (push) Successful in 11s
Repository (Bookworm) / Repository [amd64] (push) Successful in 10s
Repository (Noble) / Repository [arm64] (push) Successful in 10s
Repository (Noble) / Repository [amd64] (push) Successful in 11s
Repository (Trixie) / Repository [arm64] (push) Successful in 24s
Repository (Trixie) / Repository [amd64] (push) Successful in 19s
Initialize Git Repository: 'Repository'
2026-01-26 06:10:38 +01:00

40 lines
1.3 KiB
Bash

#!/usr/bin/sh
set -e
set -u
if [ -d '/run/systemd/system' ]; then
/usr/bin/systemctl --system daemon-reload > '/dev/null' 2>&1 || \
/usr/bin/true
fi
case "${1}" in
remove)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper mask 'reprepro.path' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper mask 'reprepro.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
/usr/bin/rm --force --recursive '/var/lib/reprepro/include'
/usr/bin/rm --force --recursive '/var/lib/reprepro/list'
/usr/bin/rm --force --recursive '/var/lib/reprepro/morgue'
;;
purge)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper purge 'reprepro.path' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper purge 'reprepro.service' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'reprepro.path' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'reprepro.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
/usr/bin/rm --force --recursive '/var/lib/reprepro'
;;
esac
/usr/bin/rm --force --recursive '/var/log/reprepro'
/usr/bin/rm --force --recursive '/var/logrotate/reprepro'