mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-11 03:11:50 +00:00
postrm: remove aptly-api user and home directory on purge
This commit is contained in:
committed by
André Roth
parent
666b5c9700
commit
1a0bffdc51
24
debian/aptly-api.postrm
vendored
Executable file
24
debian/aptly-api.postrm
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# source debconf library
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
case "$1" in
|
||||
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
# only remove aptly-api user and its homedir on purge
|
||||
if [ "${1}" = "purge" ] ; then
|
||||
userdel -r aptly-api
|
||||
fi
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postrm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user