Files
Reprepro-Wrapper/root/DEBIAN/postrm
Cantibra 2be44ab99c
All checks were successful
Reprepro Wrapper / Reprepro Wrapper (Bookworm) [arm64] (push) Successful in 12s
Reprepro Wrapper / Reprepro Wrapper (Bookworm) [amd64] (push) Successful in 10s
Inital Commit
2025-10-26 08:05:51 +01:00

49 lines
1.9 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-import.path' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper mask 'reprepro-morgue.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper mask 'reprepro-import.service' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper mask 'reprepro-morgue.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
/usr/bin/rm --force --recursive '/var/log/reprepro/'*
/usr/bin/rm --force --recursive '/var/log/reprepro/'.*
/usr/bin/rm --force --recursive '/var/logrotate/reprepro/'*
/usr/bin/rm --force --recursive '/var/logrotate/reprepro/'.*
;;
purge)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper purge 'reprepro-import.path' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper purge 'reprepro-morgue.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'reprepro-import.path' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'reprepro-morgue.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
/usr/bin/rm --force --recursive '/var/lib/gnupg/'*
/usr/bin/rm --force --recursive '/var/lib/gnupg/'.*
/usr/bin/rm --force --recursive '/var/lib/reprepro/'*
/usr/bin/rm --force --recursive '/var/lib/reprepro/'.*
/usr/bin/rm --force --recursive '/var/log/reprepro/'*
/usr/bin/rm --force --recursive '/var/log/reprepro/'.*
/usr/bin/rm --force --recursive '/var/logrotate/reprepro/'*
/usr/bin/rm --force --recursive '/var/logrotate/reprepro/'.*
;;
esac