You've already forked Reprepro-Wrapper
Inital Commit
This commit is contained in:
48
root/DEBIAN/postrm
Normal file
48
root/DEBIAN/postrm
Normal 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
|
||||
Reference in New Issue
Block a user