X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=blobdiff_plain;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=eb87fd291545b97e6c2cffbaf58a73c452f98869;hp=636f90f207e877bea04becb2b260098e2c208411;hb=f47aeeba7f705a40bbfe947f5eb374018f57ab37;hpb=b36fa9c7f5ad4827c8de990fbfca1a379bb60e39 diff --git a/debian/postinst b/debian/postinst index 636f90f..eb87fd2 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,5 +1,5 @@ #! /bin/sh -# postinst script for apt-dht +# postinst script for apt-p2p # # see: dh_installdeb(1) @@ -25,17 +25,17 @@ set -e case "$1" in configure) - if ! getent passwd aptdht >/dev/null; then + if ! getent passwd aptp2p >/dev/null; then adduser --quiet --system --no-create-home \ - --home /var/cache/apt-dht --disabled-password \ + --home /var/cache/apt-p2p --disabled-password \ --disabled-login --shell /bin/false --ingroup nogroup \ - aptdht + aptp2p fi - touch /var/log/apt-dht.log - chown aptdht:adm /var/log/apt-dht.log - mkdir -p /var/cache/apt-dht - chown -R aptdht:adm /var/cache/apt-dht + touch /var/log/apt-p2p.log + chown aptp2p:adm /var/log/apt-p2p.log + mkdir -p /var/cache/apt-p2p + chown -R aptp2p:adm /var/cache/apt-p2p ;; abort-upgrade|abort-remove|abort-deconfigure)