]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - debian/postrm
Set a new peer's ranking values so they don't get an unfair advantage.
[quix0rs-apt-p2p.git] / debian / postrm
index b604ced74f69d09abe3a3c155ecbb94d267909c4..c2ea95746da5940adfd1d61458b5b3f60e0f85e4 100644 (file)
@@ -17,6 +17,11 @@ set -e
 # for details, see http://www.debian.org/doc/debian-policy/ or
 # the debian-policy package
 
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
 if test "$1" = "purge"; then
   # Remove the logs
   rm -rf /var/log/apt-p2p.log*
@@ -24,14 +29,9 @@ if test "$1" = "purge"; then
   echo Purging apt-p2p cache directory
   rm -rf /var/cache/apt-p2p
 
-  if id aptp2p >/dev/null; then
-    deluser aptp2p
+  if id apt-p2p >/dev/null; then
+    deluser apt-p2p
   fi
 fi
 
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
 exit 0