You've already forked Repository
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
40 lines
1.3 KiB
Bash
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'
|