Inital Commit
All checks were successful
Reprepro Wrapper / Reprepro Wrapper [arm64] (push) Successful in 12s
Reprepro Wrapper / Reprepro Wrapper [amd64] (push) Successful in 11s

This commit is contained in:
Cantibra
2025-10-26 21:11:05 +01:00
commit d59fb7ee55
20 changed files with 1285 additions and 0 deletions

48
root/DEBIAN/postrm Normal file
View File

@@ -0,0 +1,48 @@
#!/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