tdevuan-keyring.postinst - devuan-keyring - Devuan keyring package
 (HTM) git clone https://git.parazyd.org/devuan-keyring
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
       tdevuan-keyring.postinst (584B)
       ---
            1 #!/bin/sh
            2 set -e
            3 
            4 case "$1" in
            5 install|configure)
            6         TRUSTEDPARTS="/etc/apt/trusted.gpg.d"
            7         eval "$(apt-config shell TRUSTEDPARTS Dir::Etc::trustedparts/d)"
            8 
            9         . /usr/share/debconf/confmodule
           10         db_version 2.0
           11         db_get devuan-keyring/keyring
           12 
           13         if [ -n "$RET" ]; then
           14                 selected=$(echo "$RET" | sed -e 's, /\n/g')
           15                 echo "$selected" | while read keyring; do
           16                         ln -sf "/usr/share/keyrings/${keyring}.gpg" "$TRUSTEDPARTS"
           17                 done
           18         fi
           19 
           20         db_stop
           21         ;;
           22 abort-upgrade|abort-remove|abort-deconfigure)
           23         exit 0
           24         ;;
           25 *)
           26         echo "postinst called with unknown argument: $1" >&2
           27         exit 1
           28         ;;
           29 esac
           30 
           31 #DEBHELPER#